2.5 Given a scenario, apply the appropriate access controls Flashcards

1
Q

What does the Set User ID (SUID) permission allow?

A

Runs the program using the permissions of the owner, regardless of which user executes it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 2 common uses for the Set User ID (SUID) permission?

A
  1. Allow users to run certain commands that normally require root access
  2. Some programs don’t run well if not run with root permissions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When viewing file permissions, what indicates that SUID/GUID permissions are set?

A

there is an “s”, instead of “x” or “-“ in the permissions
i.e. -r-sr-sr–

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the Set Group ID (SGID) permission do?

A

Runs the program using the permissions of the group owner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 ways to modify the SUID/GUID permission of a file/directory

A
  1. Using numeric permissions (4 for user, 2 for group) with chmod
    i.e. chmod 4770 [file/directory name]
  2. Using chmod u+s [file/directory name]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does setting the sticky bit on a file/directory do?

A

Prevents deletion of files by anyone except the owner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When viewing file permissions, what indicates that the sticky bit is set?

A

a “t”, in the place for execute permission
i.e. -rw-rw-r-T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a common use for the sticky bit?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are 2 ways to assign the sticky bit?

A
  1. numeric value 1, i.e. chmod 1774 [file/directory name]
  2. chmod o-t [file/directory name]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly