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]
2
Q
What is the kernel’s global default for regular files?
A
666 (rw-rw-rw-) [39]
3
Q
What is the kernel’s global default for directories?
A
777 (rwxrwxrwx) [39]
4
Q
Give the command line to view your current umask value.
A
umask
5
Q
Give the command line to change the umask value to 044
A
umask 044
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