Access Control List Flashcards

1
Q

What is the command to assign and remove ACL permissions?

A

setfacl and getfacl

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

How can you add permission to a user using ACLs?

A

setfacl -m u:user:rwx /path/to/file

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

How can you add permission to a group using ACLs?

A

setfacl -m g:group:rwx /path/to/file

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

How can you allow all files or directories to inherit ACL entries from the directory it is within?

A

setfacl -Rm “entry” /path/to/file(or dir)
entry = u:user:rwx or g:group:rwx

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

How can you remove a specific entry?

A

setfacl -x u:user|g:group /path/to/file

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

How can you remove all entries?

A

setfacl -b /path/to/file(or dir)

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

When you assign an ACL permission to a file or directory what is added at the end of the permission? Include an example.

A

It adds a + sign at the end of the permission string.
drwxrwxrwx+

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

Does setting w permission with ACL allow you to remove a file?

A

No

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