Users

User

Add

No-prompt:

useradd
/usr/sbin/useradd <name>

Prompt: adduser creates the requisite directories and provisions the rest.

adduser

Delete

Caution: these commands remove a user account.

userdel
deluser --remove-home

No login

No-login account: _.

Password

passwd [user]

Filesystem rights

setfacl -R -m user:<user>:rwx <path>

Group

There is no group of groups. Only users in a group.

Add

groupadd <group>

Remove

groupdel <group>

Filesystem rights

chgrp -R <group> <path>

Show

Groups are listed in /etc/group.

cut -d: -f1 /etc/group

User and group

Add to group

usermod -a -g <group> <User>

-a appends, with removing from other groups.

Sudo group

A user can be added to a group, but a file under /etc/sudoers.d is better for upgrades. Preferred:

<user> ALL=(ALL:ALL) ALL
Updated: 2026 Aug 19