Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change the mask into 775

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

Just wondering how do I change the mask into 775 in my account which is adoc, so everytime i create a file I dont have to change the mode.

the home directory is : /opt/adoc

THX GUYS,
 
Set your umask to 002. You can do this in your login script:

umask 002

If you create a file, it will have 775 permissions. If some other process creates the file, you'll have to discover how to set the UMASK value for that process accordingly.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top