Manage File Permissions and Ownership Flashcards

1
Q

What is level 4 Octal permission

A

Read permission

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

What is level 2 Octal Permission

A

Write permission

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

What is level 1 Octal permission

A

execute permission

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

What is level 0 Octal permission

A

No permssion

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

What does the command chown do

A

Change the ownership of a file or directory

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

What does the command chmod do

A

Change the mode of a file or directory

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

what does the command chgrp do

A

Change the group ownership of a file or folder

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

What does the command SUID do

A

The set user ID bit. Files with an s in the place of the x permission within the users column have this set

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

What does the command SGID do

A

Assigns group ownership to files

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

What does the command Sticky bit do

A

only allows the creator of a file to remove the file

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

What does the umask command do

A

Shows the current umask settings and can set a new umask value for the current shell session

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

What does the umask value command do

A

Subtract the umask value from the default permission to get the currently configured permission value

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

What is stored in /etc/bashrc

A

umask set for whole system

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

What is stored in /home/[user]/.bashrc

A

umask set for individual user

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