how to list of Groups on ubuntu server,
and how to create user on ubuntu server
how to list of Groups on ubuntu server,
and how to create user on ubuntu server
will list all the groups, including ones used only by the system. Just typingCode:cat /etc/groupwill list all the groups of which the current user is a member. To add a user useCode:groupsTo add a user to a specific group useCode:sudo useradd nameFor more information on all these -- and it's really a good idea to make sure you know what you're doing before doing system-level commands -- you can typeCode:sudo usermod -G name-of-group -a 'name-of-user'orCode:info command-nameFor instance "man useradd".Code:man command-name
I did this without adding the -a option so now I no longer have root access, and oddly enough the admin group is no longer in the /etc/group file. Does anyone know how to recover from such a scenario? The link:
http://ccollins.wordpress.com/2007/0...ubuntu-groups/
talks about a similar situation but does not talk about how to add the admin group back into the /etc/group file. It's easy to edit back in but what number do you assign it?
This is a really old thread. Closed. Please start a new thread.
Last edited by matt_symes; September 20th, 2012 at 05:07 PM.
If you believe everything you read, you better not read. ~ Japanese Proverb
If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain
Thinking about becoming an Ubuntu Member?
Bookmarks