Query: umask
OS: hpux
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
umask(2) System Calls Manual umask(2)NAMEumask - set and get file creation maskSYNOPSISDESCRIPTIONsets the process's file mode creation mask to cmask and returns the previous value of the mask. Only the file access permission bits of the masks are used. The bits set in cmask specify which permission bits to turn off in the mode of the created file, and should be specified using the symbolic values defined in stat(5).EXAMPLESThe following creates a file named in the current directory with permissions so that the file can be written only by its owner, and can be read or executed only by the owner or processes with group permission, even though group write permission and all permissions for others are passed in toRETURN VALUEThe previous value of the file mode creation mask is returned.SEE ALSOmkdir(1), sh(1), mknod(1M), chmod(2), creat(2), mknod(2), open(2).STANDARDS CONFORMANCEumask(2)
Related Man Pages |
---|
umask(2) - mojave |
umask(2) - opendarwin |
umask(2) - netbsd |
mkfifo(3c) - hpux |
umask(1) - sunos |
Similar Topics in the Unix Linux Community |
---|
User creation |
how to remove permissions for 'others' only |
how to set the default file persmission of file to "rwx" |
Unmask |
Monitoring umask execution |