List, set, and Change standard permissions Flashcards
What are the symbolic characters for permissions
a - all u - user g - group o - other r - read w - write x - execute
What are the octal bits for permissions
1 - execute
2 - write
4 - read
How do you add a user to a group
usermod -G groupname username
What happens if a user is added to a group while logged in
user must log out and log back in to have proper group permissions
What permissions does a user need to enter a directory
execute
Can a user perform an ls on inside a directory if they only have x permissions
No you need x and r to enter a directory and perform an ls
How do you change user and group ownership
chown username:groupname add -R for resursive
How do you change group
chgrp
Whats does setuid and setgid do
Allows a user to execute a file with the perfmissions of the owner or owning group instead of their own permissions.
What is does umask do
sets default permissions for new directories and files
What permissions do umask do on files
umask doesnt so x on files only rw
How do umask permissions work
umask permissions are masked permissions meaning any permissions in umask are removed from newly created files and directories.
How do you change umask permissions
umask 0022 changes are not peresistent
how do you persistenly set umask permissions
modify /etc/bashrc and /etc/profile
Which permissions in mask apply to non priv priv users
Top line is for non-priv users, bottom line is for priv users