Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

BSD 2.11 - man page for umask (bsd section 2)

UMASK(2)							System Calls Manual							  UMASK(2)

NAME
umask - set file creation mode mask
SYNOPSIS
oumask = umask(numask) int oumask, numask;
DESCRIPTION
Umask 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 VALUE
The previous value of the file mode mask is returned by the call.
SEE ALSO
chmod(2), mknod(2), open(2) 4th Berkeley Distribution May 9, 1985 UMASK(2)
All times are GMT -4. The time now is 12:46 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?