Default Permissions Flashcards

1
Q

How do you show default umask permissions?

A

umask

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

What are the default permissions linux sets for a file excluding umask?

A

666

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

What are the default permissions linux sets for a directory excluding umask?

A

777

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

With a umask of 0022, what will the default permissions be for a new file?

A

644

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

With a umask of 0022, what will the default permissions be for a new directory?

A

655

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

How can you set the umask interactively?

A

umask >nnnn<

i. e umask 0002
* only affects current shell session

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

How is umask set permanently?

A

In /etc/bashrc and /etc/profile

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