default group on file creation
Is it possible to set a default group when files are created, regardless of what the default group the user is a member of?
I would like to have users who can create files on a virtual host site and by default, the permissions are set so they are the owner and have rw, the group is set to a group only apaches service account is a member of, which has rw, and other users have no access rights.
It is important the user is not a member of the group because files in other virtual hosts will be accessed by the httpd daemon at group level and the user by ownership. All other users would be denied access and the user creating the file is granting access to himself and apache alone. Effectively having 2 owners, the user and the apache service account.
It would be preferable if this was to happen every time a file is created, whether by FTP, script or any other means
Many thanks.
|