Mac OSX: All files in share 700 - normal?


Recommended Posts

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.

Link to comment
  • 2 weeks later...

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?

Link to comment

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.