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)]
- change ownership of file
-
https://linuxize.com/post/linux-chown-command/
chgrp [group] [file]
- change group ownership of a file
-
https://www.geeksforgeeks.org/chgrp-command-in-linux-with-examples/
chmod [3 digit code] [file]
- change access permissions
-
https://ss64.com/bash/chmod.html < calculator for perms, very helpful!
maintenance and checking perms
ls -ld
- see permissions for a directory
ls -l
- see permissions for files in a directory