To find out what groups your user belongs to (the user you're logged in as), use
id -a
To see the members of a group, use
getent group [group name]
To add a user to a group, use
usermod -G [group name[,group name]] [user id]
NOTE: you need to be logged in as ROOT or with ROOT rights to do this; and all secondary groups that the user is already a member of must be listed, not just the group you want to add the user to. The list of groups should be comma-separated, without any spaces.
Tuesday, 22 April 2008
Subscribe to:
Comments (Atom)