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