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.

Anyway to automate/cron "Docker Safe Permissions"?

Featured Replies

Basically the title. I often use Windows to manage the files on a few of my folders, but if they were made/touched by the unraid system then windows doesn't have permission to move/delete them. Is there anyway to automate the docker safe permissions tool to run every x hours?

 

Thanks!

Edited by Blaze9

User scripts plugin

Script would be

newperms /mnt/user/nameOfShare

Sent via Tapatalk because I'm either at work or enjoying the summer

This solution is a sort of surrender, the real answer is to determine which process is munging the permissions and fix the permission options in that process. Pretty much all of the docker containers I am aware of have ways to specify what permissions the files they touch should be left with.

29 minutes ago, jonathanm said:

This solution is a sort of surrender, the real answer is to determine which process is munging the permissions and fix the permission options in that process. Pretty much all of the docker containers I am aware of have ways to specify what permissions the files they touch should be left with.

100% true, but sometimes it's just plain easier and less aggravating.

 

My /downloads sometimes gets left-over files in it that the client for whatever reason decided to not adjust the permissions on appropriately.  I just have newperms running against that share hourly as the 2 seconds to do the script was easier than yelling at the computer and spending the time to figure out why it only happened once in a while.  If I ever get bored, then I'll re-approach the problem, but for now, I just can't be bothered.

100% true, but sometimes it's just plain easier and less aggravating.
 
My /downloads sometimes gets left-over files in it that the client for whatever reason decided to not adjust the permissions on appropriately.  I just have newperms running against that share hourly as the 2 seconds to do the script was easier than yelling at the computer and spending the time to figure out why it only happened once in a while.  If I ever get bored, then I'll re-approach the problem, but for now, I just can't be bothered.
Quitter...

Sent from my Mi A1 using Tapatalk

  • 5 months later...
On 7/12/2018 at 6:56 AM, Squid said:

User scripts plugin

Script would be

newperms /mnt/user/nameOfShare

Sent via Tapatalk because I'm either at work or enjoying the summer
 

Hey Squid - when trying to run this script in the User Scripts plugin, I get the error "newperms: command not found"

 

Any thoughts?

Pic1.PNG

Pic2.PNG

/usr/local/sbin/newperms /mnt/user/nameOfShare

 

But, usually its not necessary to run this on a schedule, unless you've got a container misconfigured and writing the wrong permissions

21 hours ago, Squid said:

/usr/local/sbin/newperms /mnt/user/nameOfShare

 

But, usually its not necessary to run this on a schedule, unless you've got a container misconfigured and writing the wrong permissions

Thanks that worked. Ok I will check my container configurations to see what could be wrong.

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.