I want to set a folder such that anything created within it (directories, files) inherit default permissions and group.
Lets call the group "media". And also, the folders/files created within the directory should have g+rw automatically.
directorylinuxpermissions
I want to set a folder such that anything created within it (directories, files) inherit default permissions and group.
Lets call the group "media". And also, the folders/files created within the directory should have g+rw automatically.
Best Answer
I found it: Applying default permissions
From the article:
Set the
setgid
bit, so that files/folder under <directory> will be created with the same group as <directory>Set the default ACLs for the group and other
Next we can verify:
Output: