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.

  • @canni
    link
    English
    6
    edit-2
    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
      cake
      link
      fedilink
      English
      51 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
        cake
        OP
        link
        fedilink
        English
        31 year ago

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

    • discomatic
      cake
      OP
      link
      fedilink
      English
      31 year ago

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