Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: System Administration >> How to add a user with group in linux

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: How to add a user with group in linux
 vikas  Posted: Jul 12, 2005 09:32:10 PM

 Total Post: 18
 Joined: Jan, 2003






 Hi All,

How can I add a user by useradd command and specify group id with it?

Thanks,
Vikas

 Kiran
Posted: Apr 07, 2006 01:53:39 AM  

 Total Post: 9
 Joined: Apr, 2006






 
for e.g

groupadd -g 300 dba
dba is the group cretaed and 300 is the identifier

useradd -g dba -d /u01/oracle -s /bin/bash -p password oracle

oracle :- is the username
dba :- is the group name
/u01/oracle is the home directory
password :- is the password for user






 positive
Posted: Jun 27, 2008 02:36:32 PM  

 Total Post: 361
 Joined: Jun, 2008






 
A user can belong to more than one group.In /etc/groupfile groups are comma seperated.The first group number is the group with which the user logs in.After logging into the system the user can change group using the command:

newgrp <group-name>



 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software