7
submitted 1 year ago by discomatic@lemmy.ca to c/plex@lemmy.ca

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
[-] canni@lemmy.one 6 points 1 year ago* (last edited 1 year ago)

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

[-] phx@lemmy.ca 5 points 1 year ago

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

[-] discomatic@lemmy.ca 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.

[-] discomatic@lemmy.ca 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 ›
this post was submitted on 18 Jul 2023
7 points (100.0% liked)

Plex

2401 readers
9 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