File Permissions in Linux - rune-seregina/sys-255-fa24 GitHub Wiki

user and group setup
adduser [username]

  • adds a user

passwd [username]

  • set a password

groupadd [group name]

  • adds a group

usermod -aG [group] [username]

  • add user to group

changing ownership and file permissions
chown [user:group] [file(s)]

chgrp [group] [file]

chmod [3 digit code] [file]


maintenance and checking perms
ls -ld

  • see permissions for a directory

ls -l

  • see permissions for files in a directory
⚠️ **GitHub.com Fallback** ⚠️