wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes umask question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "umask question" Watch "umask question" New topic
Author

umask question

Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
If I change the "umask" value at a certain directory (by manually type "umask xx"), will that only affect files in that directory without affecting the umask setting for files at any other directory ?
Vlado Zajac
Ranch Hand

Joined: Aug 03, 2004
Posts: 245
umask works for processes not directories. So it will affect all new files created from that shell and all child processes.
Raj Ohadi
Ranch Hand

Joined: Jun 30, 2006
Posts: 316
I am not good at unix script. how to set umask in a korn script ? any example ?

thanks
 
jQuery in Action, 2nd edition
 
subject: umask question
 
Similar Threads
JDK1.5 installation failed on ubuntu linux 11.10 server
what umask value should I set for this permission
Invoke Java code from Korn script and UNIX env setting
UNIXhow to ensure files created in a directory automatically has group "w" permission
How to support USB device?