I have an SMB share setup in linux that I can write to, but cannot move files to from Windows. In Windows I can't move files to it from my Windows disk or from another share.
The share is an NTFS formatted partition.
For testing I am using files on a share of a ZFS formatted partition, and then trying to move them from there to the NTFS formatted share.
In MacOS, when using the shares via AFP I can move the files from the ZFS share to the NTFS share no problem. Additionally, after doing this I can then move them back and forth using Windows as well.
In MacOS, when using the shares via SMB I cannot move the files from the ZFS share to the NTFS share.
In a linux guest, when mounting the shares via SMB I can move the files from the ZFS share to the NTFS share no problem. Additionally, after doing this I can then move them back and forth using Windows as well.
fstab:
Code:
/dev/disk/by-label/v /mnt/v ntfs auto,nofail,noatime,rw,windows_names,norecover,big_writes,streams_interface=windows,inherit,uid=share,gid=share 0 0
I have also tried with ,permissions,users but this made no difference.
smb.conf (just an excerpt but hopefully these are the relevant bits, the configuration for the ntfs share [v] is complete):
Code:
[global]
force user = share
force group = share
workgroup = WORKGROUP
[v]
path=/mnt/v
writable = yes
create mask = 0775
directory mask = 0775
Permissions on the test files in the ZFS share look like this (test-macos.zip is the file that was successfully moved on MacOS using AFP and test-linux-smb.zip is the file that was successfully moved on linux)
Code:
-rwxrwxrwx+ 1 share share 23150939 Sep 6 07:51 test-macos.zip
-rwxrwxr-x+ 1 share share 23150939 Sep 6 07:51 test.zip
-rwxrwxr-x+ 1 share share 23150939 Sep 6 07:51 test-linux-smb.zip
Permissions for the NTFS share where I am trying to move the files to:
Code:
drwxrwxrwx 1 share share 8192 Sep 14 10:53 .
I'm very confused how I can move the files over SMB in Linux but not MacOS or Windows, and how after doing this I can then move the file in Windows despite the permissions between this and a file I can't move looking the same.
I'm guessing that there's either something in my fstab or smb configuration I need to change to get it working properly?
Thanks
Bookmarks