CS01-HS Posted July 1, 2022 Share Posted July 1, 2022 Is it normal that all files copied to or from an unraid share have permission -rwx------ ? Create file locally and copy to mounted unraid share Public: [macbook-pro]:~/Desktop $ touch x [macbook-pro]:~/Desktop $ ls -l x -rw-r--r-- 1 fred staff 0 Jul 1 09:13 x [macbook-pro]:~/Desktop $ cp x /Volumes/Public/ [macbook-pro]:~/Desktop $ ls -l /Volumes/Public/x -rwx------ 1 fred staff 0 Jul 1 09:14 /Volumes/Public/x Examine file's permissions on unraid server NAS: [macbook-pro]:~/Desktop $ ssh root@NAS Last login: Fri Jul 1 08:56:17 2022 from 10.0.1.3 Linux 5.15.46-Unraid. [root@NAS]:~# ls -l /mnt/user/Public/x -rw-rw-rw- 1 fred users 0 Jul 1 09:14 /mnt/user/Public/x I've tweaked my samba config to resolve some mac-specific issues so I don't know whether this behavior's default or a consequence of my settings. Quote Link to comment
CS01-HS Posted July 2, 2022 Author Share Posted July 2, 2022 Problem persists even after disabling my custom configuration. I found a number of users reporting similar samba problems, some with windows https://ubuntuforums.org/showthread.php?t=2414960 I'm out of my depth at this point but curious if it's working for anyone, windows, mac or otherwise. Quote Link to comment
CS01-HS Posted July 11, 2022 Author Share Posted July 11, 2022 Here's a test comparing unRAID's SMB behavior to my Raspberry Pi's. /Volumes/Download/ is the smb-mounted unRAID share /Volumes/Website/ is the smb-mounted Pi share In both cases default is the logged-in smb user. unRAID [macbook]:~ $ touch x [macbook]:~ $ ls -l x -rw-r--r-- 1 default staff 0 Jul 10 12:01 x [macbook]:~ $ cp x /Volumes/Download/ [macbook]:~ $ ls -l /Volumes/Download/x -rwx------ 1 default staff 0 Jul 10 12:01 /Volumes/Download/x [macbook]:~ $ cp /Volumes/Download/x . [macbook]:~ $ ls -l x -rwx------ 1 default staff 0 Jul 10 12:01 x Raspberry Pi (samba package) [macbook]:~ $ touch y [macbook]:~ $ ls -l y -rw-r--r-- 1 default staff 0 Jul 10 12:20 y [macbook]:~ $ cp y /Volumes/Website/ [macbook]:~ $ ls -l /Volumes/Website/y -rw-r--r-- 1 default staff 0 Jul 10 12:20 /Volumes/Website/y [macbook]:~ $ cp /Volumes/Website/y . [macbook]:~ $ ls -l y -rw-r--r-- 1 default staff 0 Jul 10 12:21 y [macbook]:~ $ chmod a+x y [macbook]:~ $ ls -l y -rwxr-xr-x 1 default staff 0 Jul 10 12:21 y [macbook]:~ $ cp y /Volumes/Website/ [macbook]:~ $ ls -l /Volumes/Website/y -rwxr-xr-x 1 default staff 0 Jul 10 12:21 /Volumes/Website/y Anyone? Quote Link to comment
CS01-HS Posted July 14, 2022 Author Share Posted July 14, 2022 Looks like this problem is Mac-specific. To test I setup a Windows VM – permission seem fine (files read/write, no execute) Quote Link to comment
Recommended Posts
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.