We can change the default permission set for files and directories using ______

We can change the default permission set for files and directories using ______
A. umask
B. um
C. perm
D. touch
 
Answer: a
Explanation: The permissions of a file/ directory are managed at the time when we create these. The permissions are transformed by subtracting the user mask from it to remove one or more permissions. For example,
Code:
$ umask
022
This is an octal number which is subtracted from the system default to obtain the actual default. Hence it will become 644 for ordinary files and 755 for directories. Now if we create any file or directory, the permissions associated will be 644 and 755 respectively.
 

Tìm kiếm

Back
Top