Is there a way, on Linux, to cause all new files created in a directory to be owned by the directory's group instead of the creating user's group?
|
feedback
|
|
If you 'chmod g+s directory' then all files created in that directory will be owned by that group. newgroup is really a holdover from the days when you could only be in one group, and isn't really needed nowadays. | ||||
|
feedback
|
|
Files created by user are created with his current group ID.
To check user ids you can execute Check this shell 'log':
| |||
|
feedback
|