umask — Get or Set the File Mode Creation Mask
Synopsis
/usr/bin/umask [-S][mask]
sh, csh
umask [ooo]
ksh
umask [-S][mask]
Description
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, ...
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.