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.

write denied on smb share even if set to read/write on unraid and remote system identifies the share as both read/write

Featured Replies

Hi! Started from unraid 7, created user shares with a non root user that has read/write on the smb share. From my mac i connect to the share and when i use "get info" my user is stated to have both read/write access. Whenever i try to add or edit anything on the share i still get a permission error. Any ideas? Hard to move forward since i really cant find anything that seems wrong but i still dont get write right on my shares.

 

Edited by sux

  • Community Expert

What is the share name? Also, post the output from:

 

ls -l /mnt/user

 

  • Author
5 minutes ago, JorgeB said:

What is the share name? Also, post the output from:

 

ls -l /mnt/user

When i do i have drwxrwxrwx 1 nobody users  10 Jan 30 18:10 data/ on the share i am working on, does that help?

  • Community Expert

Does it work if you make it a public share? 

  • Community Expert

The actual name of the share would be a big help.  BUT the first and last letter of the share name would be enough in your case.

  • Author
2 minutes ago, trurl said:

Does it work if you make it a public share? 

Seems to be the same, made it public and tried to delete a file. Get the response The operation can’t be completed because you don’t have permission to access some of the items.

  • Author
1 minute ago, Frank1940 said:

The actual name of the share would be a big help.  BUT the first and last letter of the share name would be enough in your case.

The shares named data

  • Community Expert

Using the

ls -al  /mnt/user/data

command, drive down the directory to a file which has the problem.  (Use the up-down arrow keys to take advantage of the Shell command editor in Unraid...)

 

Copy that line into your next forum message and format using the 'Code'  function for forum posts.  See below:

image.png.7b38c8529e6776da52cd9f07245691e8.png

 

 

  • Author
3 minutes ago, Frank1940 said:

Using the

ls -al  /mnt/user/data

command, drive down the directory to a file which has the problem.  (Use the up-down arrow keys to take advantage of the Shell command editor in Unraid...)

 

Copy that line into your next forum message and format using the 'Code'  function for forum posts.  See below:

image.png.7b38c8529e6776da52cd9f07245691e8.png

 

 

Sorry, one week away from windows. I lost you after the command i could paste 😵‍💫

  • Author
-rw-r--r-- 1 nobody users     8493 Feb  3 08:41 000-alan_walker-walkerworld_2.0.nfo

Did i get this right? This is a file i tried to delete but couldnt.

  • Community Expert

The permissions must be -rw-rw-rw for data files for things to work right.   (Most SMB access to Secure and Private shares is provided through the   group    permissions!)

 

To fix, run the   New Permissions   tool  in the TOOLS tab.  (Read the last line of the instructions VERY Carefully!!!) *

 

However, that does not fix the problem of how the permissions got set that way in the first place.  It is usually by a Docker Container (Or a VM) that writes directly to the array without using SMB.  How did that .nfo file get created?  That is the first question that you have to find the answer to.

 

*  You can ignore the first paragraph of the instructions.  That is out of date for 99.99% of Unrraid users today.  

 

 

 

Edited by Frank1940
Left a attachment in after editing post

  • Author
2 minutes ago, Frank1940 said:

The permissions must be -rw-rw-rw for data files for things to work right.   (Most SMB access to Secure and Private shares is provided through the   group    permissions!)

 

To fix, run the   New Permissions   tool  in the TOOLS tab.  (Read the last line of the instructions VERY Carefully!!!) *

 

However, that does not fix the problem of how the permissions got set that way in the first place.  It is usually by a Docker Container (Or a VM) that writes directly to the array without using SMB.  How did that .nfo file get created?  That is the first question that you have to find the answer to.

 

*  You can ignore the first paragraph of the instructions.  That is out of date for 99.99% of Unrraid users today.  

 

 

image.png

I think i found the source of the error at least. Noticed i could create a new folder on the share but not edit the existing ones (mostly created by sabnzbd) Found this thread

Tried changing the setting mentioned in sabnzbd to 777 and then i could delete the file downloaded. Not sure if this is a symtom of something i should adress but might atleast be a quick fix for now.

  • Community Expert
11 minutes ago, sux said:

Tried changing the setting mentioned in sabnzbd to 777 and then i could delete the file downloaded.

 

That will work.  That is basically what generally has to be done to fix this problem.  Every Container has to be set up properly for use with Unraid unique SMB permission requirements.  Generally, those containers which were added to the APP store by a dedicated Unraid user  will already have set things up to work properly and will have a support thread on the Unraid Forum. 

Edited by Frank1940

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.