Query: umask
OS: bsd
Section: 2
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UMASK(2) System Calls Manual UMASK(2)NAMEumask - set file creation mode maskSYNOPSISoumask = umask(numask) int oumask, numask;DESCRIPTIONUmask sets the process's file mode creation mask to numask and returns the previous value of the mask. The low-order 9 bits of numask are used whenever a file is created, clearing corresponding bits in the file mode (see chmod(2)). This clearing allows each user to restrict the default access to his files. The value is initially 022 (write access for owner only). The mask is inherited by child processes.RETURN VALUEThe previous value of the file mode mask is returned by the call.SEE ALSOchmod(2), mknod(2), open(2) 4th Berkeley Distribution May 9, 1985 UMASK(2)
Related Man Pages |
---|
pam_umask(8) - debian |
umask(2) - osx |
umask(2) - netbsd |
umask(2) - sunos |
umask(3) - php |
Similar Topics in the Unix Linux Community |
---|
Sftp Umask |
umask |
How to set default permission |
Umask to generate files with rwx permissions for all |
Umask permission |