1

I am setting up a directory for media. I need two users to be able to read, write and execute any content inside a directory, even if the other user created it.

The directory is a samba share. I want a user, bob, to be able to access it and allow the user plex to access it. Both users must have full access to all directories. So if the shared directory is called /myShare, and bob creates a directory inside of it /myShare/bobs, the user plex could read write execute and delete any content inside of /myShare/bobs.

I am somewhat new to Ubuntu, but I have spent hours and hours on this.

Any suggestions would be VERY VERY VERY VERY VERY appreciated!

1 Answers1

1
sudo setfacl -m d:u:plex:rwX,d:u:bob:rwX /myShare

will set the default access control list for new files and directories created in /myShare to allow both users plex and bob to read, write and delete files. (X means x for directories, and obey normal mode for files.) If you want to apply the ACL to existing files and directories, use setfacl -R.

See the manual pages for access control lists and setfacl for details.

AlexP
  • 10,435