Workbook 4 File Ownership and Permissions: Chapter 6: Controlling Default Permissions: umask Flashcards

1
Q

What is the default mode of newly created
(i) regular files
and
(ii) directories?

A

(i) 664 (rw-rw-r–)

(ii) 775 (rwxrwxr-x) [38]

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

What is the kernel’s global default for regular files?

A

666 (rw-rw-rw-) [39]

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

What is the kernel’s global default for directories?

A

777 (rwxrwxrwx) [39]

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

Give the command line to view your current umask value.

A

umask

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

Give the command line to change the umask value to 044

A

umask 044

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

You want a different umask than the bash shell’s default. Which file do you modify to automatically change the bash shell’s umask every time you log in?

A

~/.bashrc

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