File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: umask question