The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




Thread: umask
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-01-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,933
Quote:
Originally Posted by Nagapandi View Post
Hi,

Sorry for the inconvenience, Once again with umask

Please, let me know how the umask is working? As per my understanding is aprt from subtracting from 666/777, logical gate operation is performing.
The umask describes what file-access bits to always eliminate when creating a file, where 1 is execute, 2 is write, and 4 is read. a umask of 777 will always remove all bits, 666 will remove read and write, 000 won't clear any bits at all, etc. A umask of 000 will usually result in rw-rw-rw just because what created the file never asked for the execute bit to be set in the first place; the umask will never give more bits than what the program asked for, just remove specific bits.