Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

umask question

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not good at unix script. how to set umask in a korn script ? any example ?

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic