Unix/Linux Go Back    

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

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

UMASK(2)										 UMASK(2)

       umask - set file creation mode mask

       oumask = umask(numask)
       int oumask, numask;

       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

       The previous value of the file mode mask is returned by the call.

       chmod(2), mknod(2), open(2)

4th Berkeley Distribution		   May 9, 1985					 UMASK(2)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 06:07 PM.