Link to home
Start Free TrialLog in
Avatar of rfulcher
rfulcher

asked on

Default directory and file permissions.

Is there a way to have default permissions on any file created in a directory.  umask is by the user and I can't change that.

Thanks
Avatar of Tintin
Tintin

The umask is what controls the permissions on created files, so if you can't change the umask, then you'll need to manually change the perms on the file.

The only other control you have is by forcing group perms on a file by setting the GUID on the directory.

For example if the directory /some/dir had owner of 'root' and group of 'users' and you set the GUID bit with

chmod g+s /some/dir

then so long as any user was in the 'users' group, the GUID bit would force all created files to have 'users' group.
ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rfulcher

ASKER

ravenpl:

The fileschanged is a linux application or command?  I have never heard of this.  I think this may be the best solution.  Where can I get more info on this?

Thanks
Forced accept.

Computer101
EE Admin