When user creates the file/directory, user owner will be user itself and group owner will be the primary group of the user.
There is one Special Permission SGID bit, when you set the SGID bit on directory,When users creates the file/directory automatically owner group will be same as a parent directory.
chmod g+s /data
Verify using: ls -ld /data
You will get: drwxrws---
Options Selected by Other Users:
Option A: (20 votes)
100%
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit