I’m very new and I’m sorry if this is a stupid question, but is there any way to set folder (and future subfolder) permissions on Ubuntu?
I use the Arrs and new folders are made automatically when something completes, but I constantly have to use Plex to optimize my videos before they’ll play. Unfortunately, the new folders get locked when they’re made.
I’m not sure what I’ve done to my setup, but I’d love some help if anyone is willing.
You can change the umask on your system, that’s the brute force option, and it will set the default creation mode of all files and folders. You could also set a sticky bit. e.g.
chmod 2770
will make the folder you target r/w/x by the owner and group, no permissions for others, and it will ensure any new child folders or files have the same permissions.tl;dr google umask or sticky bits
You can also add a “sticky group” permission to a folder using the plus modifier
chmod g+s /path/to/dir
Or for everything under the directory
chmod -R g+s /path/to/dir
Amazing. Thank you. I’m a little afraid of making sweeping changes so having two options to research is great.