Managing File Permissions and Ownership Flashcards

1
Q

What is the layout of a file / folder permission?

A

-(directory or not)—(user)—(group)—(other)

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

What does the following command do?

chmod ugo+x filename / foldername

A

Gives the user, group, and other ownerships execute permission

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

What does the following command do?

chmod ug-x, o+rwx filename / foldername

A

Removes execute permission from the user and group permissions.

Gives the other ownership read, write, execute permission

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

What does the following command do?

sudo chown nick nick.txt

A

Changes the owner of nick.txt to nick

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

What does the following command do?

sudo chown nick.nick nick do?

A

Changes the user nick and the group nick to be owners of the folder nick

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

What does the following command do?

sudo chown .nick nick do?

A

Changes the group owner for folder nick to group nick

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

What is the octal value of r?

A

4

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

What is the octal value of w?

A

2

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

What is the octal value of x?

A

1

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