Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 635 Bytes

user_groups.md

File metadata and controls

55 lines (41 loc) · 635 Bytes

Ceat Sheet: User and groups

Some help to create / edit / manipulate local users and groups.

Creation

Useradd

Add a new user

useradd <username>

Add a new system user

useradd --system <username>

Groupadd

Add a new group

groupadd <groupname>

Add a new system group

groupadd --system <groupname>

Editing / Manipulation

Edit user password

passwd <username>

Edit user shell

chsh -s <shell>

Deletion

Delete a user

userdel <username>
# Remove including related /home and mail queue
userdel --remove <username>

Delete a group

groupdel <groupname>