Users And Groups On Linux

  Add a New Group groupadd <groupname> Add an Existing User to a Group usermod -a -G <groupname> username To remove the user userdel username To remove the user's home directory pass the -r option to userdel, enter: userdel -r username Change a User’s Primary Group usermod -g <groupname> username View a User’s Group Assignments If you’re trying to figure out a permissions issue, you’ll want to use the id command to see what groups the user is assigned to: i...
More