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.

How to manually fix permissions.

Featured Replies

I'm trying trying to fix permissions recursively to the standard unraid permissions at the end of a User Script but I can't figure out how.

So far I have:

 

chown -R nobody:users /mnt/user/backups-gdrive/
chmod -R u=rw,go=rw /mnt/user/backups-gdrive/
 

But I know that directories should also have +x.

 

What would be the correct chmod command?

 

Solved by BRiT

  • Community Expert

Here is one example of how to do it:

 

https://linuxize.com/post/chmod-recursive/

 

Be ever so careful when using the '-R' parameter.   Improper paths can result in a disaster of the first magnitude!!! 

 

Use the find command first to verify which directories or files will be modified...

  • Solution

You're making it too complicated. Run newperms script with the parameter of the directory you want it to start in:

 

/usr/local/sbin/newperms /mnt/user/backups-gdrive

  • Community Expert

Unraid GUI > Tools > New Permissions is a once off tool to clean up perms, it also shows the reference permissions/ownership that are set.

 

(New Permissions tool)...changes file and directory ownership to nobody/users (i.e., uid/gid to 99/100), 
and sets permissions as follows:

For directories:
  drwxrwxrwx

For read/write files:
  -rw-rw-rw-

For readonly files:
  -r--r--r--

 

Edited by tjb_altf4

  • Author
9 hours ago, BRiT said:

You're making it too complicated. Run newperms script with the parameter of the directory you want it to start in:

 

/usr/local/sbin/newperms /mnt/user/backups-gdrive

Thanks! That should work. I didn't know about this newperms command.

55 minutes ago, frank-unr said:

Thanks! That should work. I didn't know about this newperms command.

There is also a Docker-Safe NewPerms command too, but I'm not sure where that's actually at and have only invoked it from the UI. I forget which CA-plugin provides it, if it's from the main "Community Applications" or one of the addons.

 

As long as you don't run that newperms script against your "appdata" location or where you have dockers setup, you should be fine.

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

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.