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.

SMB writes wrong permissions (SOLVED)

Featured Replies

I log into my unraid from windows or mac with a specific user name. That works all fine and I can upload and change files.

However, turns out the SMB uploaded files are owned by that user and not accessible by other users even though the share they are in is a public, non-secure one.

I can fix this with the "Safe new perms" tool, but it's a recurring issue.

 

What do I need to change to maintain proper file permissions (nobody/users) when uploading via SMB?

Edited by froland80
marking as solved

  • Author

After a bit more digging found several related posts (after understanding that this is about forcing a user over SMB):

Solution is to add the following lines to your /boot/config/smb-extra.conf

 

[Global]

  force create mode = 0666

  force directory mode = 0777

  force user = nobody

  force group = users

  create mask = 0666

 

Marking as solved.

  • Author

P.S. As noted in some of the other posts, would be nice to have a better way of handling this in the unraid UI.

  • froland80 changed the title to SMB writes wrong permissions (SOLVED)

This shouldn't really need to be 'handled' at all.  Unraid forces the use of nobody.users and I can see why TBH.  But if they're going to do that, they should really default all the built in writing to their chosen permissions format.  File sharing has never been the strong suit of unraid unfortunately, but with a bit of tweaking it can work OK.

  • 1 year later...
On 1/28/2021 at 4:27 PM, froland80 said:

After a bit more digging found several related posts (after understanding that this is about forcing a user over SMB):

Solution is to add the following lines to your /boot/config/smb-extra.conf

 

[Global]

  force create mode = 0666

  force directory mode = 0777

  force user = nobody

  force group = users

  create mask = 0666

 

Marking as solved.

I'm still having a slight issue with this -> I've applied the changes above

 

Something continues to change my Pictures SMB folder from 0777 to 0770. Is there somehow to create a new user that can't modify folder permissions?

  • Community Expert
15 minutes ago, Rick_Sanchez said:

Something continues to change my Pictures SMB folder from 0777 to 0770. Is there somehow to create a new user that can't modify folder permissions?

 

Do you have a Docker or VM that has access to this folder?  The reason that I mention this is that either of these can write directly to the array bypassing SMB. 

Edited by Frank1940

  • 10 months later...
On 1/28/2021 at 10:27 PM, froland80 said:

After a bit more digging found several related posts (after understanding that this is about forcing a user over SMB):

Solution is to add the following lines to your /boot/config/smb-extra.conf

 

[Global]

  force create mode = 0666

  force directory mode = 0777

  force user = nobody

  force group = users

  create mask = 0666

 

Marking as solved.

 

You can paste this in [server address]/Settings/SMB, which will put it in the exact same file.

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.