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