August 8, 20169 yr Anytime my CouchPotato or Sonarr dockers add a new folder such as a new movie or a new TV show (not a new episode to an already created TV show folder), the permissions seem to get screwed up for those folders. I've tried setting the CP permissions to 777 instead of 0777 but the permissions get even more screwed up that way. I know I'm doing something wrong because I'm a Windows guy a know very little about Linux permissions.
August 8, 20169 yr 777 Won't work because then its interpreted as a decimal value. 0777 is the correct value (although 0666 will also work if you're of a more devious mind) Sonarr you do have to explicitly tell it to change the permissions via advanced settings toggle button. But on either app, changing the setting will not affect media already moved to the array. To fix the permissions, you'll either need to do it manually via chmod or via the "Docker Safe New Permissions" tool which comes with the fix common problems plugin. Don't run the New Permissions tool that comes with unRaid as it'll have some adverse affects on your docker apps.
August 8, 20169 yr Author 777 Won't work because then its interpreted as a decimal value. 0777 is the correct value (although 0666 will also work if you're of a more devious mind) Sonarr you do have to explicitly tell it to change the permissions via advanced settings toggle button. But on either app, changing the setting will not affect media already moved to the array. To fix the permissions, you'll either need to do it manually via chmod or via the "Docker Safe New Permissions" tool which comes with the fix common problems plugin. Don't run the New Permissions tool that comes with unRaid as it'll have some adverse affects on your docker apps. My dockers are running on my UnRAID server they are running on a separate Ubuntu 16.04 Server. I have fixed the permissions many times but I'm looking for a solution that will keep things automated without me having to constantly fix permissions each time a new folder is moved/created by one of my Dockers.
August 8, 20169 yr 777 Won't work because then its interpreted as a decimal value. 0777 is the correct value (although 0666 will also work if you're of a more devious mind) Sonarr you do have to explicitly tell it to change the permissions via advanced settings toggle button. But on either app, changing the setting will not affect media already moved to the array. To fix the permissions, you'll either need to do it manually via chmod or via the "Docker Safe New Permissions" tool which comes with the fix common problems plugin. Don't run the New Permissions tool that comes with unRaid as it'll have some adverse affects on your docker apps. My dockers are running on my UnRAID server they are running on a separate Ubuntu 16.04 Server. I have fixed the permissions many times but I'm looking for a solution that will keep things automated without me having to constantly fix permissions each time a new folder is moved/created by one of my Dockers. No matter what the base system you're running them on, the concept is still the same 0777 gives rwx access to the files / folders for the owner, the group members, and other members.
August 8, 20169 yr Author 777 Won't work because then its interpreted as a decimal value. 0777 is the correct value (although 0666 will also work if you're of a more devious mind) Sonarr you do have to explicitly tell it to change the permissions via advanced settings toggle button. But on either app, changing the setting will not affect media already moved to the array. To fix the permissions, you'll either need to do it manually via chmod or via the "Docker Safe New Permissions" tool which comes with the fix common problems plugin. Don't run the New Permissions tool that comes with unRaid as it'll have some adverse affects on your docker apps. My dockers are running on my UnRAID server they are running on a separate Ubuntu 16.04 Server. I have fixed the permissions many times but I'm looking for a solution that will keep things automated without me having to constantly fix permissions each time a new folder is moved/created by one of my Dockers. No matter what the base system you're running them on, the concept is still the same 0777 gives rwx access to the files / folders for the owner, the group members, and other members. And as you can see from my SS#2, I have the permissions set to 0777 so how is that permissions are getting set to SS#1 when CP moves my newly DL'd movie from /mnt/user/Downloads to /mnt/user/Movies?
August 8, 20169 yr The key is however, do you have problems accessing the file? An owner of nobody:users and permissions of 0770 will allow you full rights to the file through unRaid.
August 8, 20169 yr Author The key is however, do you have problems accessing the file? An owner of nobody:users and permissions of 0770 will allow you full rights to the file through unRaid. Through UnRAID no, but since my server is joined to AD I lose access to those files via other AD joined Windows PC's when they permissions get changed.
August 8, 20169 yr Know absolutely nothing about AD at all... Only person I know of that runs AD (or at least used to) would be smdion. Maybe drop him a PM or head over to linuxserver's IRC chatroom
September 25, 20169 yr You are looking for setfacl and getfacl. With these tools you can add in the appropriate AD permissions you are seeking. As to the creation of NEW files and folders from CP & Sonarr, you need to be setting the default setting in the permissions. I wish I could provide you insight on how to use setfacl and getfacl to get your permissions perfect, but I'm in the process of learning this for myself and working on my setup also. I discovered your thread while researching my own issues and thought I'd provide this much insight to hopefully put you on a path as well.
Archived
This topic is now archived and is closed to further replies.