1835055 Members
2380 Online
110073 Solutions
New Discussion

Default rights of user

 
SOLVED
Go to solution
Fred Morin_1
Advisor

Default rights of user

I have a user on group USER, when he created a file, the default rights of this file is
rw-rw-r--,

Is it possible to change the default to rwxrwxrwx, when the user created a new file?
1 REPLY 1
Jeff Schussele
Honored Contributor
Solution

Re: Default rights of user

Hi Frederic,

No, sorry it's not.
The default umask gives you the 664, but UNIX (ANY UNIX) will not allow you to assign execute perms to any file upon creation - dirs yes - files no. Not even root can override that.
You'd have to come in with a script (cron?) & reset the perms after creation.

This is more or less a security feature & a legacy action that "files" are not executable & shouldn't be so unless direct action is taken to set them so.

Just think what a hacker could do with this "feature".

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!