Permission problem


Recommended Posts

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/

 

Link to comment

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.

Link to comment

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?

Link to comment

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.

Link to comment

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.

 

 

Link to comment
  • 10 months later...

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.