August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/umask [-S][mask]
umask [ooo]
umask [-S][mask] When you create a file or directory, the default file permissions assigned to the file or directory are controlled by the user mask. You set the user mask with the umask command in a user initialization file such as /etc/profile or .cshrc. You can display the current value of the user mask by typing umask and pressing Return.
You set the user mask with a three-digit octal value such as 022. The first digit sets permissions for the user, the second for the group, the third for others. To set the umask to 022, type
umask 022
File permissions of 666 grant read and write permission to the user, group, ...
Read now
Unlock full access