Friday 8 December 2023

Force group for new content

We have a shared directory, DATA, on our data server. The shared directory is in group mcc, and each user is also a member of this group. However, when users created files and directories inside this shared folder, permission defaulted to the user's group, and others could not access it.

To fix this, I used the following command for the shared directory:

chmod g+s DATA

I found that tip here.