![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding user to a group without SAM | paqman | HP-UX | 2 | 08-15-2007 04:05 AM |
| Adding quota for a group | manoranjan | UNIX for Advanced & Expert Users | 1 | 12-21-2006 01:35 PM |
| Adding users to /etc/group | golfhakker | UNIX for Dummies Questions & Answers | 1 | 03-30-2006 01:27 PM |
| Adding an extension to a group of filenames | pepintheshort | UNIX for Dummies Questions & Answers | 9 | 04-09-2004 05:11 PM |
| Adding a user to a group | TRUEST | UNIX for Dummies Questions & Answers | 5 | 11-14-2003 08:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Adding root user to a group
Hey everyone, I need a little help....
I need to add my root user to a new group I have created, I'm just alittle unsure how to do this. I know I need to use the 'useradd' command, the user 'root' needs to be added to a new group called 'beoper' and retain his membership in the following groups - 'other, root, bin, sys, adm, uucp, mail, tty, lp, nuucp, daemon' Could someone please show me the correct syntax to perform this function, I really can't afford to screw this one up. Thanks. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You have things slightly mixed up. useradd is used to add a new user to the system. If you want to edit the attributes of an existing user, you have to use usermod. Run the following command:
Code:
usermod -G beoper root |
|
#3
|
|||
|
|||
|
Thanks for that.
Do I need to list all the other groups that root is a member of ? The -G syntax states that you need to list all current groups or you will no longer be a members of those groups. I just need to make sure, I can't have any mistakes. Last edited by The Specialist; 10-21-2005 at 11:14 PM. |
|
#4
|
||||
|
||||
|
Quote:
Quote:
I would just go and hack at the /etc/group file, and tack "root" onto the end of the beoper line (comma seperated with the other users listed). Cheers ZB |
|
#5
|
||||
|
||||
|
Quote:
Cheers ZB |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||
|
||||
|
Sorry for the wrong info. Actually, I always edit the /etc/group file and it really has been ages since I used the usermod command to add a user to a group.
|
||||
| Google The UNIX and Linux Forums |