Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "umask question" Watch "umask question" New topic

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 ?

wood burning stoves
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?