2.5 Given a scenario, apply the appropriate access controls Flashcards
What does the Set User ID (SUID) permission allow?
Runs the program using the permissions of the owner, regardless of which user executes it
What are 2 common uses for the Set User ID (SUID) permission?
- Allow users to run certain commands that normally require root access
- Some programs don’t run well if not run with root permissions
When viewing file permissions, what indicates that SUID/GUID permissions are set?
there is an “s”, instead of “x” or “-“ in the permissions
i.e. -r-sr-sr–
What does the Set Group ID (SGID) permission do?
Runs the program using the permissions of the group owner
What are the 2 ways to modify the SUID/GUID permission of a file/directory
- Using numeric permissions (4 for user, 2 for group) with chmod
i.e. chmod 4770 [file/directory name] - Using chmod u+s [file/directory name]
What does setting the sticky bit on a file/directory do?
Prevents deletion of files by anyone except the owner
When viewing file permissions, what indicates that the sticky bit is set?
a “t”, in the place for execute permission
i.e. -rw-rw-r-T
What is a common use for the sticky bit?
To prevent users from deleting others’ files in a shared directory. Assigning “write” permission to a group for a directory also allows any member to delete any other file.
What are 2 ways to assign the sticky bit?
- numeric value 1, i.e. chmod 1774 [file/directory name]
- chmod o-t [file/directory name]