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.

Permission problems? Can't move files in folders downloaded via Rclone.

Featured Replies

First off I just want to say that I'm new to Linux systems and I'm still very confused about the way permissions are handled.

 

To focus on the main issue, here is the big problem that I haven't found a workaround for; the contents of folders that are downloaded via Rclone are unable to be moved via Qbittorrent. Individual files seem to work fine, but if I try to move a folder, it will create a new empty folder without moving the contents.

 

I'm using Qbittorrent to generally manage the location of my files and categorize them. I used Rclone to download a bunch of files into a folder called SeedboxCache. I can add the torrents for these files and Qbittorrent will scan them and seed them from their current locations. If I tell Qbittorrent to move the files then any files that were in folders are not actually moved. Strangely, it works okay with individual files that aren't inside of folders.

 

I have tested and confirmed that the problem is with the individual folders that were downloaded and not the parent folder, SeedboxCache. I moved a file from a local computer into the SeedboxCache folder and Qbittorrent was able to move that one properly.

 

I also tested moving a folder out of SeedboxCache manually using the terminal and the mv command. Qbittorrent is still unable to move that folder even if it has been taken out of SeedboxCache.

 

So it appears that the issue is related to a permission incompatibility between Qbittorrent and folders downloaded with Rclone, but I do not know to go from there.

Solved by trurl

  • Community Expert
  • Solution

Try Tools - New Permissions on only the user share(s) in question (not appdata) and see if that makes any difference.

  • Author

Thank you! That fixed the issue and it fixed other problems I was having. But it also gave me more questions.

 

First, the obvious, I need to figure out how to either make rClone set the permissions as required when downloading, or add the chmod command to the rClone user script. That should be doable.

 

Now the part that's confused me. I was having permissions problems when trying to access most of my files via Samba. Most of the problems seemed to be connected to folders that Qbittorrent wrote to. For example, when accessing my share outside of root, I couldn't write or delete files from folders used for seeding, incomplete downloads, torrent files, etc. I had suspected that this was something to do with the way Qbittorrent was managing permissions for files that it wrote.

 

But now, I don't have this problem. I consider that a good thing. However, this leads me to wonder why I had the problem in the first place and how to prevent it in the future. The descriptions in the New Permissions tool didn't make it sound as if it was something that needed to be done on a regular basis.

 

Do I need to enter these same permission settings when installing Dockers perhaps?

  • Community Expert

How to get an app to use the correct permissions when it creates files will vary. Check in the settings within the app for umask or something

  • Author

Okay, I think I've got most of this sorted out but one thing I've run into.

 

At the end of my rClone user script, I copied the commands from the New Permissions tool and changed the folder to the SeedboxCache folder.

 

chmod -R u-x,go-rwx,go+u,ugo+X /mnt/user/Share/SeedboxCache
chown -R nobody:users /mnt/user/Share/SeedboxCache
Sync

 

The problem is that when I run the script, it says the sync command isn't found. Is this a problem? I thought it was a basic Linux command.

 

Would I need to do these with sudo or is that implied with UnRaid?

 

Thank you!

  • Community Expert

Linux is case sensitive so are you sure you used ‘sync’ rather than ‘Sync’ as you posted.

  • Author

It looks like you were right. I had mistakenly entered it with a capital letter. Thank you for the help!

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.