Group setup

Tutorial on defining users and groups –  https://www.techrepublic.com/article/how-to-create-users-and-groups-in-linux-from-the-command-line/

  • sudo useradd <username>– create user without home directory, and no login capability
  • sudo useradd -m <username>– create user with home directory matching username.
  • Set up password:
    • Create user and then sudo passwd <username>
    • Or… set password at the same time sudo useradd -m <username> -p PASSWORD

Create Group:  sudo groupadd <group>

Add user to group: sudo usermod -a -G <group> <username>

List of group memberships in /etc/group

And then, when editing your own group membership, don’t forget to logout and back in so they’ll take effect (not that I’d ever forget such a thing….).  https://stackoverflow.com/a/5054930