Comment on What am I doing wrong with Linux/NAS permissions?
BillibusMaximus@sh.itjust.works 4 hours agoNo, there’s a longstanding pattern to solve the group issue.
- Add users that need write perms to the same group (create a new group if it makes sense to do so)
- Set the directory’s group to that group
- Set the directory perms to group writable
- Set the SGID bit for the directory (chmod g+x for existing dirs, but you can set the umask so new dirs get it too)
1-3 ensures everyone that needs to write can, and 4 will make any file created in that dir inherit the group from the dir instead of the creating user.
IronKrill@lemmy.ca 4 hours ago
That sounds promising, I’ll take a look at it.
MentalEdge@sopuli.xyz 4 hours ago
Note, #4 will not apply to files MOVED into the directory. Only files that count a “created”.