decentswati
asked on
umask
HI,
please tell me the use of umask and its working procedure.i know it is for changing permissions of files but how it works and how it is different from chmod.
please tell me the use of umask and its working procedure.i know it is for changing permissions of files but how it works and how it is different from chmod.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
HI both of u,
i am now going to finalize this question.I accept the answer of NovaDenizen because of its clearity.still for the more clearity the 2nd url of Brettmjohnson.thanks for helping me out.
bye-decentswati
i am now going to finalize this question.I accept the answer of NovaDenizen because of its clearity.still for the more clearity the 2nd url of Brettmjohnson.thanks for helping me out.
bye-decentswati
whereas chmod modifies the permissions of existing files. Note that, since
the umask is a deny mask, its 1s complement is ANDed with the requested
(or implied) permissions to get the final result.
http://librenix.com/?inode=4612
http://unix.about.com/library/glossary/bldef-cmd-umask.htm
Note that one lame-ass tutorial on the net describes the umask value as:
"The logic behind the number given to umask is not intuitive."
and goes not further. Why it shows up at the top of google's list is beyond me.