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.

No write access to public smb share

Featured Replies

  • Community Expert

Hi everyone

I have a "Scan" share (exported, public) on my network to enable read/write access to scanned images/documents for all of my users. The scanner writes documents to this share without any issues. AFAIK the user and permissions are correct:

root@Unraid:/mnt/user/Scan# ls -l /mnt/user/Scan
lrwxrwxrwx 4 nobody users 7 Aug 24 13:41 /mnt/user/Scan -> ../tank/Scan/
root@Unraid:/mnt/user/Scan# ls -l /mnt/user/Scan/
total 1044
-rwxrw-rw- 1 nobody users 511573 Aug 24 13:11 24082025131150.pdf*
-rwxrw-rw- 1 nobody users 517497 Aug 24 13:41 24082025134119.pdf*
root@Unraid:/mnt/user/Scan#

But when I am connected to this share as a regular user from my Mac's Finder, I can read, but I can not write/delete files in this share?! According to the manual ("Public - The share is unsecured and all users have both read and write access to the contents of the share.") this should be possible if I understand correctly.

My goal is to have read/write access to all files and folders for all users on this share. What am I doing wrong?

Thanks a lot!

Thorsten

Solved by Frank1940

  • Community Expert

Post up the diagnostics file for this server in a new post in this thread.

  • Community Expert

Post up the output of

ls -al /mnt

  • Author
  • Community Expert
root@Unraid:~# ls -al /mnt
total 9
drwxr-xr-x 11 root   root  220 Aug 20 12:55 ./
drwxr-xr-x 20 root   root  440 Aug 24 18:33 ../
drwxrwxrwt  2 nobody users  40 Aug 20 12:54 addons/
drwxrwxrwx 12 nobody users 210 Aug 24 18:33 disk1/
drwxrwxrwx  4 nobody users  50 Aug 24 18:33 disk2/
drwxrwxrwt  2 nobody users  40 Aug 20 12:54 disks/
drwxrwxrwt  2 nobody users  40 Aug 20 12:54 remotes/
drwxrwxrwt  2 nobody users  40 Aug 20 12:54 rootshare/
drwxrwxrwx 11 nobody users  11 Aug 24 18:33 tank/
drwxrwxrwx  1 nobody users 210 Aug 24 18:33 user/
drwxrwxrwx  1 nobody users 210 Aug 24 18:33 user0/
root@Unraid:~#
  • Community Expert

Now for a few more

ls -al /mnt/tank

ls -al /mnt/tank/Scan

ls -al /mnt/tank/Scan/

Note the last two differ only by the trailing slash....

  • Author
  • Community Expert
root@Unraid:~# ls -al /mnt/tank
total 82
drwxrwxrwx 11 nobody users  11 Aug 24 18:33 ./
drwxr-xr-x 11 root   root  220 Aug 20 12:55 ../
drwxrwxrwx  3 nobody users   4 Aug 15 15:43 Aktuell/
drwxrwxrwx 28 nobody users  28 Aug 24 12:17 appdata/
drwxrwxrwx  3 nobody users   3 Aug 24 09:14 domains/
drwxrwxrwx  2 nobody users   3 Aug 24 09:11 isos/
drwxr-xr-x  5 nobody users  16 Aug 24 17:09 Public/
drwxrwxrwx  2 nobody users   4 Aug 12 19:38 sanoid/
drwxr-xr-x  4 nobody users   7 Aug 24 13:41 Scan/
drwxrwxrwx  4 nobody users   4 Jul 31 19:21 system/
drwxr-xr-x  3 nobody users   3 Aug  3 13:39 webdav/
root@Unraid:~# ls -al /mnt/tank/Scan
total 1071
drwxr-xr-x  4 nobody users      7 Aug 24 13:41 ./
drwxrwxrwx 11 nobody users     11 Aug 24 18:33 ../
-rwxrw-rw-  1 nobody users 511573 Aug 24 13:11 24082025131150.pdf*
-rwxrw-rw-  1 nobody users 517497 Aug 24 13:41 24082025134119.pdf*
-rwxrw-rw-  1 nobody users   6148 Aug 24 17:17 .DS_Store*
drwxr-xr-x  2 nobody users      2 Aug 24 08:44 paperless_je/
drwxr-xr-x  2 nobody users      2 Aug 24 08:44 paperless_ts/
root@Unraid:~# ls -al /mnt/tank/Scan/
total 1071
drwxr-xr-x  4 nobody users      7 Aug 24 13:41 ./
drwxrwxrwx 11 nobody users     11 Aug 24 18:33 ../
-rwxrw-rw-  1 nobody users 511573 Aug 24 13:11 24082025131150.pdf*
-rwxrw-rw-  1 nobody users 517497 Aug 24 13:41 24082025134119.pdf*
-rwxrw-rw-  1 nobody users   6148 Aug 24 17:17 .DS_Store*
drwxr-xr-x  2 nobody users      2 Aug 24 08:44 paperless_je/
drwxr-xr-x  2 nobody users      2 Aug 24 08:44 paperless_ts/
root@Unraid:~#
  • Community Expert
  • Solution

You don't have write permission here:

image.png

This is a standard problem with most Linux distributions. They no longer permit write permissions for group and other by default. Unraid requires -rw-rw-rw- permmissions for files and drwxrwxrwx for directories for SMB and NFS file sharing to work properly for all users (which include 'Guest' user!).

See here for Docker containers.

https://forums.unraid.net/topic/188600-share-permissions-changed-to-owner-99/#comment-1540351

  • Author
  • Community Expert

Ok. Thanks! I understand! But I did not change anything manually. I just created the shares and set them as exported and public?! So it's expected behavior, that public shares do not work "out of the box"?

chmod 777 für "Scan" and "Public" will fix the issue w/o further side effects?

  • Author
  • Community Expert

FYI: The Tools -> New Permissions script did not work for me since /mnt/user/Public and /mnt/user/Scan are only Symlinks to /mnt/tank/Public and /mnt/tank/Scan accordingly. I had to fix it manually:

root@Unraid:~# chmod -R go-rwx,u-x,go+u /mnt/tank/Public/
root@Unraid:~# chmod -R go-rwx,u-x,go+u /mnt/tank/Scan/
root@Unraid:~# find /mnt/tank/Public/ -type d -exec chmod 777 {} \;
root@Unraid:~# find /mnt/tank/Scan/ -type d -exec chmod 777 {} \;

@Frank1940 THANK YOU SO MUCH 😊

Edited by Tom7320

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.