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 problem

Featured Replies

  • Author

/mnt/user/Downloads

  • Replies 51
  • Views 23.2k
  • Created
  • Last Reply
  • Author

root@Tower:~# ls -la /mnt/user/Downloads

total 0

drwxrwxrwx 1 nobody users  6 Nov 23  2015 ./

drwxrwxrwx 1 nobody users 171 Oct  2 20:00 ../

root@Tower:~# ls -la /mnt/user/Downloads

total 0

drwxrwxrwx 1 nobody users  6 Nov 23  2015 ./

drwxrwxrwx 1 nobody users 171 Oct  2 20:00 ../

 

So where are all the files that you can't delete?

  • Author

In the Downloads folder

In the Downloads folder

 

There's nothing in there...

 

unless I'm missing something?

  • Author

It was in /mnt/users/downloads/completed   

 

I have another folder called Downloads for some reason and I thought it was that one, it wasn't

 

Here is the output:

 

drwxrwxrwx 1 nobody users    6 Oct  3 12:46 ./

drwxrwxrwx 1 nobody users    60 Sep 26 21:54 ../

-rw-rw-rw- 1 ashman users 14340 Oct  3 13:40 .DS_Store

-rw-rw-rw- 1 ashman users  4096 Sep  5 13:13 ._.DS_Store

drwxrwxrwx 1 nobody users  226 Sep  4 11:07 some.downloaded.file/

drwxrwxrwx 1 nobody users  211 Sep 29 08:55 some.downloaded.file/

drwxrwxrwx 1 nobody users  157 Sep 28 00:47 some.downloaded.file/

drwxr-xr-x 1 nobody users    75 Oct  2 19:41 some.downloaded.file/

drwxrwxrwx 1 nobody users  168 Sep 30 21:21 some.downloaded.file/

drwxrwxrwx 1 nobody users  190 Sep 27 22:35 some.downloaded.file/

drwxrwxrwx 1 nobody users  145 Sep 28 00:47 some.downloaded.file/

drwxr-xr-x 1 nobody users  268 Oct  2 21:55 some.downloaded.file/

drwxrwxrwx 1 nobody users  189 Sep 15 18:33 some.downloaded.file/

drwxrwxrwx 1 nobody users  143 Oct  3 13:40 some.downloaded.file/

drwxrwxrwx 1 nobody users  156 Oct  3 12:03 some.downloaded.file/

drwxrwxrwx 1 nobody users  156 Oct  3 12:03 some.downloaded.file

drwxrwxrwx 1 nobody users  199 Sep 28 00:47 some.downloaded.file/

drwxrwxrwx 1 nobody users  274 Sep 29 21:27 some.downloaded.file/

drwxrwxrwx 1 nobody users  286 Sep 30 18:42 some.downloaded.file/

drwxrwxrwx 1 nobody users  271 Aug 21 17:14 some.downloaded.file/

drwxrwxrwx 1 nobody users  134 Sep 28 09:39 some.downloaded.file/

drwxrwxrwx 1 nobody users    81 Sep 27 22:35 some.downloaded.file/

drwxrwxrwx 1 nobody users  230 Sep 28 09:39 some.downloaded.file/

drwxrwxrwx 1 nobody users  175 Sep 29 08:54 some.downloaded.file/

drwxr-xr-x 1 nobody users  170 Oct  2 19:39 some.downloaded.file/

drwxr-xr-x 1 nobody users  287 Oct  2 22:26 some.downloaded.file/

drwxrwxrwx 1 nobody users  290 Sep 29 10:38 some.downloaded.file/

drwxrwxrwx 1 nobody users  141 Sep 28 09:39 some.downloaded.file/

drwxrwxrwx 1 nobody users  166 Sep 29 08:54 some.downloaded.file/

drwxr-xr-x 1 nobody users  268 Oct  1 22:18 some.downloaded.file/

drwxrwxrwx 1 nobody users  172 Sep 30 23:41 some.downloaded.file/

drwxrwxrwx 1 nobody users  158 Sep 29 19:32 some.downloaded.file/

drwxr-xr-x 1 nobody users  220 Oct  2 19:40 some.downloaded.file/

drwxr-xr-x 1 nobody users  138 Oct  2 19:41 some.downloaded.file/

drwxrwxrwx 1 nobody users  226 Sep 29 08:55 some.downloaded.file/

drwxrwxrwx 1 nobody users  4096 Sep 30 20:00 some.downloaded.file/

drwxrwxrwx 1 nobody users  240 Sep 30 18:42 some.downloaded.file/

drwxrwxrwx 1 nobody users  134 Oct  3 12:03 some.downloaded.file/

drwxrwxrwx 1 nobody users  214 Sep 29 08:54 some.downloaded.file/

drwxr-xr-x 1 nobody users  172 Oct  2 19:39 some.downloaded.file/

 

Sound like you have a user share named Downloads and another user share named downloads. These are different user shares as far as linux and unRAID are concerned, but SMB and Windows has trouble telling them apart. You should probably consolidate them.

This is one reason I only ever use lowercase for folders on Linux.

 

Sent from my LG-H815 using Tapatalk

 

 

  • Author

How do I consolidate the shares, is there an easy way?

  • Author

I just delete the Downloads share, there was nothing in it. I adjusted the permission for the downloads share, but as user ashman, I still can't delete files?

Since the Downloads share doesn't seem to have any contents, you can just go to the settings for that share and delete it.

 

Any idea how it got created? Did you perhaps intend for your applications to use Downloads but then you configured them to use downloads instead, so that downloads got created by the applications?

 

If the applications created the downloads share then it likely still has default settings show you might want to check those.

 

Any folder in /mnt/user is a user share. Any top level folder on cache or any array drive will appear as a folder in /mnt/user. If you create a folder in /mnt/user or at the top level of cache or array drives it will be a user share with default settings.

I just delete the Downloads share, there was nothing in it. I adjusted the permission for the downloads share, but as user ashman, I still can't delete files?

How did you adjust the permission for the downloads share?
  • Author

Through the gui in the shares tab, I changed the security to secure, and added the user ashman with full read/write permissions for both SMB and AFP. I am still unable to delete some files.

Through the gui in the shares tab, I changed the security to secure, and added the user ashman with full read/write permissions for both SMB and AFP. I am still unable to delete some files.

Are you trying to do this from the same PC you said you deleted the credentials on?

 

What if you set the security to public?

  • Author

No I am doing it on my Mac. If I set the security to public I can delete anything.

this is getting increasingly towards being nothing to do with our container and more to do with shares and SMB.

  • Author

Fair enough, I just don't understand how the permissions changed when all that was happening was frequent updates to NZBget and Sonarr, the two apps that use this directory.

No I am doing it on my Mac. If I set the security to public I can delete anything.

If you deleted the credentials on Windows, that will have no bearing on whether the credentials were renegotiated on your Mac!

 

Each computer logs in on its own, and how it logs in is not always obvious since if it has successfully logged in before it will just try to do it again the same way without prompting, which might not be what you need. Please study that post I linked earlier.

 

Sparkly, I agree totally. He already started another thread about it. I will see if I can move all this discussion over there.

run the newperms script over the host side of the downloads folder, change the umask setting like i showed you to cover for future downloads, and if you still can't delete files, then it is an error rooted in shares and SMB.

I have split and merged all these posts with his other thread.

Fair enough, I just don't understand how the permissions changed when all that was happening was frequent updates to NZBget and Sonarr, the two apps that use this directory.

 

That's what we've been trying to look at.  Basically on Unraid:

 

User = nobody

Group = users

 

drwxrwxrwx

 

d = directory (& file would be indicated by a - )

rwx = read, write & execute for owner (nobody)

rwx = read, write & execute for members of the group (users)

rwx = read, write & excute for all other users

 

So ls - la tells us that everything is being created as expected by the docker containers, as we set the file ownership to nobody:users with PUID = 99 (nobody) and PGID = 100 (users) which is the case for the vast majority of those files you showed us.

 

There are some exceptions, notably the .DS_Store files, but those are nothing to do with the container, but created by Mac.

 

My understanding of users on Unraid, and I'm sure someone will correct me if I'm wrong, is that you created a user, ashman, who is added to the group:users.  So in theory IF your clients have negotiated appropriate smb permissions they should be able to have full permissions on these files (indicated by the second block of three letters apertaining to group being set at rwx ) 

 

IF the docker had been creating files with permissions like -rwx------ nobody users then that would have told us that only the user nobody had file permissions and the reason you couldn't delete files was because ashman does not have any permissions as part of the group users.  But as you can see, thats not the case.

 

So the conclusion is it's something to do with how your clients are interacting over smb.  Which is what trurl is trying to help you with.  I never have got my head around Windows/Mac smb stuff, and I no longer use either OS myself, so I'm going to leave this one to trurl, who I'm sure will correct anything above that I may have got wrong.  As it stands that's what I understand to be the issue.

 

 

  • 10 months later...

I had the same thing, i went to tools -> set permissions, and hit the downloads share. finally it worked again

I had the same thing, i went to tools -> set permissions, and hit the downloads share. finally it worked again
That's fine, but it can break docker containers if you do this....

Sent from my LG-H815 using Tapatalk

6 minutes ago, CHBMB said:

That's fine, but it can break docker containers if you do this....

Sent from my LG-H815 using Tapatalk
 

 

Good to know, i just started using unraid, thanks for the tip.

 

I have deluge installed, but it doesn't download i think cause i have done this, do i need to reinstall deluge or get a full fresh docker img?

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.