this post was submitted on 18 Jul 2023
7 points (100.0% liked)

Plex

2501 readers
1 users here now

Welcome to Plex, a community dedicated to Plex, the media server/client solution for enjoying your media!

founded 1 year ago
MODERATORS
 

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.

top 4 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (2 children)

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

[–] [email protected] 5 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago

Amazing. Thank you. I'm a little afraid of making sweeping changes so having two options to research is great.

[–] [email protected] 3 points 1 year ago

This is exactly what I was looking for. I just didn't know the vernacular. Thank you.

load more comments
view more: next ›