26 Apr
2005
26 Apr
'05
19:19
On Tuesday 26 April 2005 21:01, Randall R Schulz wrote:
Ken,
On Tuesday 26 April 2005 11:30, Ken Schneider wrote:
...
umask actually subtracts from what would be full access.
Actually, it subtracts from the mode supplied by the program that is issuing the system call to create the file.
Or to be absolutely accurate, it doesn't subtract, it does a logical and between the desired permissions and the inversion of the umask if you have an umask of 222 and you try to create a file with mode 444, that doesn't give you (through subtraction) 222, it gives you 444 & 555 = 444.