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

execute property with umask command

Status
Not open for further replies.

Barn

Technical User
Feb 22, 2002
37
FR
Hi,

I would like every new file created by a user be with the properties rwxrwxr-x (775).

Normaly I have to set umask 002 (777 - 775) but when I create a new file

#touch essai

The rights by default are -rw-rw-r--

For a directory

#mkdir essai_rep

the rights are drwxrwsr-x

So is that possible to creat a new file whith rigths rwxrwxr-x?

I work on AIX 5.1 ML3.

Thanks in advance and sorry for my english.

Barn.
IBM Certified -- Am I?
 
You cannot set the umask such that the normal files will have execute permission when created; you need to chmod the file to add x permissions if needed

Dave
 

That's what I thougth.

Thanks. Barn.
IBM Certified -- Am I?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top