Groups
- Add a new group
- root# groupadd [groupname]
- Remove group:
- root# groupdel [groupname]
- Add a user to a group:
- root# gpasswd -a [username] [groupname]
- Remove a user from group:
- root# gpasswd -d [username] [groupname]
Users
- Create a new user and set password for user
- root# user add -m -G [group] -s /bin/bash [username]
- Remove user (
-r
option will remove home folder and mail spool)
- root# userdel -r [username]
Sudoers
Add user to sudoers (with all premissions)
/etc/sudoers
|
|
More information here