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

Mint Setup Notes

Apache httpd

  • Mostly sudo apt-get install apache2
  • Some notes at: https://community.linuxmint.com/tutorial/view/486

SSHD

  • Installing SSH daemon http://linuxg.net/how-to-enable-ssh-on-linux-mint-15-14-13-12/
  • sudo apt-get install openssh-server
  • Disable root login: https://www.howtogeek.com/howto/linux/security-tip-disable-root-ssh-login-on-linux/
  • sshd defaults to PermitRootLogin prohibit-password
    • This seems to mean that ssh key is still permitted.
    • https://askubuntu.com/a/449372
    • Change it no.  Don’t allow root to login directly at all.