Permissions and Ownership Flashcards
What does read permissions for a directory mean?
List directory content
What does write permissions for a directory mean?
Create, rename, delete
What does execute permissions for a directory mean?
Access directory, execute file, perform task
What is the command to modify the permissions of a file or directory?
sudo chmod [options] [mode] [file/directory]
What does the -c flag for chmod do?
Report changes
What does the -f flag for chmod do?
Hide error messages
What does the -v flag for chmod do?
Outputs a diagnostic for every file processed.
What does the -R flag for chmod do?
Recursively modify permissions
What is the command to view a users default permissions for newly created files and directories?
umask
What is the command to display a users default permissions for newly created files and directories in symbolic value?
umask -S
What is the command to display a users default permissions for newly created files and directories in number form value?
umask -p
What is the command to change the owner of a file or directory?
chown [user] [file/directory]
What is the command to change the user and group owner of a file or diretory?
chown [user]:[group] [file/directory]
What is the flag to recursively change the permissions of a directory?
-R
What is the command to change the group ownership of a file or directory?
chgroup [name] [file/directory]
What is Set User ID (SUID)?
User is allowed to have similar permissions as the owner of the file
What is Set User Group (SGID)?
User is allowed to have similar permissions as the group owner of the files and directories
What is the command to set a users SUID in Symbolic mode?
chmod u+s [file names]