Linux Guide

Users and Groups

  • List users:  cat /etc/passwd
  • Create user: useradd -m username
  • Set password: passwd username
  • Add user to a group: usermod –a –G GROUPNAME USERNAME

 SSH Access

Grant SSH access to a group

/etc/ssh/sshd_config:
AllowGroups sshusers

File/Folder Permissions and Ownership

chown -R someuser:somegroup /path/to/folder/or/file.*