Docker Safe New Permissions - What does it do?


Recommended Posts

Hi! I'm trying to use the unBALANCE plug in which is telling me that before I complete the operation I have in mind, I should run Docker Safe New Permissions (which is installed as part of CA).

 

I would like to know:

 

1. What does "Docker Safe New Permissions" do?

2. Is it safe for my data and why?

3. Why would permissions on user data ever need to be fixed?

 

Thanks!

Edited by ksignorini
Link to comment



This utility will restore standard unRaid permissions to all shares and files without touching any of the APPDATA shares for docker applications.

(Many times, a docker application has specific requirements for its ownership / permissions on the files contained within its appdata, and the standard New Permissions tool will change these, possibly rendering the docker application inoperable.)

You should use this tool in case a misconfigured docker application (notably CouchPotato or Sonarr / SickBeard) has written media files to your array with the wrong permissions, and you find yourself unable to modify / delete those files.

Link to comment
5 hours ago, Squid said:

 

 

 

So if I run this, is there any chance that it screws up access to user data for any of my users? I know it doesn't touch APPDATA, and I know what it says about Couch, Sonarr, Sick, etc. but none of the files I'm moving with unBALANCE are from those apps.

 

I want to move a Time Machine backup from one drive to another with unBALANCE and unBALANCE says I should run this permissions fix first.

 

Is there any risk in running a permissions fix?

Edited by ksignorini
Link to comment

Fair enough.

 

Anything I copy from my Mac to my user folder gets:

 

--rw-r--r-- me  users

 

My Time Machine backup has a sparsebundle that's set:

 

 drwx--S--- 1 me users

 

Inside the sparesbundle is the "bands" directory where all the data is stored. Each of the bands looks like this:

 

-rw------- me users

 

This is how unRAID seems to default all of these things. I haven't changed any permissions by hand.

Link to comment

I bit the bullet and hit the button. It's going through now. On initial inspection, it seems to have fixed some problems I was having in a shared share (among two assigned users) such that now, they can both edit documents in the share (before they couldn't). OP on that is here: 

 

 

Too bad the tool doesn't let you pick which share to apply this to so it's easier to test.

 

Thanks!

 

Link to comment
15 hours ago, ksignorini said:

 

Huh. Is this documented somewhere?

In the forums around here with a lot of searching.

15 hours ago, ksignorini said:

 

Not with the Docker Safe version. The "old" version (comes with unRAID) you can but there is no dropdown on the Docker Safe version.

Never noticed when the share list came into the tool that comes with unRaid.  Probably 6.3 something which is way after when the tool was created.

Link to comment
  • 2 years later...
  • 3 months later...
On 8/27/2017 at 2:15 PM, Squid said:

 


newperms /mnt/user/NameOfShare

 

This is great, I was going to attempt to recreate the Docker Safe New Perms script and run it on a schedule for my Dropbox share... now I can just throw this one line into the User Scripts plugin!

 

Link to the source code if anyone is interested:

https://github.com/limetech/dynamix/blob/master/plugins/dynamix/scripts/newperms

On 7/16/2020 at 8:49 AM, robkurzd said:

I love you

+1, love you @Squid

Edited by groot-stuff
  • Like 1
Link to comment
  • 3 months later...

how do you run this from the gui, or do you?   I've been all over my system and can't find a place to run this.  I've run the fix common problems plugin several times and don't see this as an option.   I see the command above, is that the only way to run it?

 

 

Nevermind, I found it over in tools.

Edited by TimV
Link to comment
  • 1 year later...

how can i make a user skript runing daily on one share. 

tried this: 

 

#!/bin/bash
newperms /mnt/user/Video

 

 

but that throws error:

Script location: /tmp/user.scripts/tmpScripts/Reset permissions on share Video/script
Note that closing this window will abort the execution of this script
/tmp/user.scripts/tmpScripts/Reset permissions on share Video/script: line 2: newperms: command not found

 

im certain its a easy task for someone who knows :P 

Link to comment
24 minutes ago, chFresh said:

the reason for wanting this to run shedualed is when radarr populates the share tinymm cant write to the folder.

but after runing newperms the problem is gone.

The correct solution is to configure the permissions that radar sets in the first place so that this is not needed.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.