We don't bite newbies here... much | |
PerlMonks |
Re: Umaskby Lhamo Latso (Scribe) |
on Apr 03, 2003 at 16:07 UTC ( [id://247798]=note: print w/replies, xml ) | Need Help?? |
I usually setup my umask value in my login rc. For KSH, that is in "$HOME/.profile". For CSH, "$HOME/.login". For Bash, "$HOME/.bash_profile". That works well because your login shell will be the parent of all the sub-processes you create, and receive a copy of that environment. "umask 022" or "umask 0022" is the default when not specified. This equates to "chmod 644".
I normally set it to "umask 002", allowing members of my group to have write access to anything I create, resulting in "chmod 664".
Verify what is currently active with "umask" and no arguments.
In Section
Seekers of Perl Wisdom
|
|