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 -->
  #3 (permalink)  
Old 02-01-2009
Nagapandi Nagapandi is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 36
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.

Ex: If I set uname 011, it gave the permission like 666 for file. Request you to explain which gate's operation performed.

$umask 011
$umask
0011
$vi abc
$ls -l abc
-rw-rw-rw- 1 unixguy staff 29 Jan 26 14:03 abc

May I know why it should give -rw-rw-rw- if i set 011? As well if i see 000 also differ, may I know how the kernel is behaving?

Thanks,
Naga