Users and Groups
Source: https://www.howtogeek.com/50787/add-a-user-to-a-group-or-second-group-on-linux/
Users 🔗
Create a new user 🔗
sudo adduser username
Make a user admin 🔗
sudo usermod -a -G sudo username
List all users 🔗
id
cat /etc/passwd
Delete user 🔗
sudo userdel username
Prevent a user from showing in the list of users at the GUI logon prompt 🔗
Source: https://linuxconfig.org/disabling-user-logins-to-linux-system
Based on how the other system user that didn’t show up worked and matched with the command found in the source link.
sudo usermod username -s /sbin/nologin
Groups 🔗
Create a group 🔗
sudo groupadd groupname
Add user to a group 🔗
sudo usermod -a -G groupname username
List all groups 🔗
groups
cat /etc/group