Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dockers (CP, Sonarr) screw up permissions on new adds to User shares

Featured Replies

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.

 

CtBFz3v.jpg

 

xO4CMVZ.jpg

 

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. 

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.

 

  • 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.

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.
  • 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?

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.

  • 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.

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

  • 1 month later...

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.