Comment on What am I doing wrong with Linux/NAS permissions?

<- View Parent
BillibusMaximus@sh.itjust.works ⁨4⁩ ⁨hours⁩ ago

No, there’s a longstanding pattern to solve the group issue.

  1. Add users that need write perms to the same group (create a new group if it makes sense to do so)
  2. Set the directory’s group to that group
  3. Set the directory perms to group writable
  4. 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.

source
Sort:hotnewtop