add user to group
Hi everyone, newbie here.
I'm trying to add an existing user (don) to an existing group (admins). User don is currently a member of existing group 'dev' as well as 'don'. I first tried the command useradd don admins but when I executed 'groups don', all I got was don : don dev So for some reason don wasn't added to admins I then tried usermod -Gadmins don and, when I did 'groups don', all I got was don : don admins so it lost group 'dev'! Your help please? Thanks. |
you can just edit /etc/group and add the user to the group you want. That's it.
-twantrd |
Quote:
Quote:
I think the easiest way of editing groups is simply to use a text editor (nano, joe, jed etc.) and edit the actual groups file: /etc/group just open the file, locate the right line and edit it (look the other lines for help on syntax) EDIT: twantrd, sorry...seems like you were quick enough to answer while I was writing.. :) |
Of course, editing the /etc/group file would be the easiest solution. Thanks!
|
All times are GMT -5. The time now is 09:10 AM. |