Question: Your umask value is set to 022 and you create a file. Which set of permissions are associated with this file?
A. rw-r--r--
B. rwxr--r--
C. ----w--w-
D. rw-rw-rw-
E. rwxrwxrwx
Answer: A.
Explanation: Remember that the permissions for created files will always be the numeric value 666 minus the umask value. (666 – 022 = 644) Important Points: to make permanent change, change the umask value in user’s .profile or .cshrc. If you just change it on the current shell session, the effect is only temporary! (Next time, you log in, it will be lost!)
Source
A. rw-r--r--
B. rwxr--r--
C. ----w--w-
D. rw-rw-rw-
E. rwxrwxrwx
Answer: A.
Explanation: Remember that the permissions for created files will always be the numeric value 666 minus the umask value. (666 – 022 = 644) Important Points: to make permanent change, change the umask value in user’s .profile or .cshrc. If you just change it on the current shell session, the effect is only temporary! (Next time, you log in, it will be lost!)
Source
1 comment:
this is a good post!
Post a Comment