| 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 |
Send this thread to your friend |