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?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
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. |
||||
|
|
|
Files created by user are created with his current group ID.
To check user ids you can execute Check this shell 'log':
|
|||
|
|