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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

default umask

Status
Not open for further replies.

Skeater

IS-IT--Management
Mar 13, 2001
52
0
0
US
If the default umask for AIX is 666, how can I set user umask so new files are created with permissions of 775? The "umask ###" command only lets you subtract from 666, it appears that I would need to add to it. Any help would be greatly appreciated.
 
If umask is set for 022 .

Then the default permissions of a directory created will be ,

777-022=755
(Should subtract umask from 777 )

The default permissions of a file created will be ,

666-022=644
( Should subtract umask from 666)

Therefore there exists no umask value for file permission which would fit in to your requirement.

regards,
vivek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top