funnyprinter
Dabbler
- Joined
- Mar 14, 2014
- Messages
- 18
Files cannot be edited through cifs/smb on windows after they have been edited on a mac. Somehow it seems that the file permissions get destroyed through editing/saving on mac.
Problem on Windows
It results in the error on saving:
"The file \\freenas\temp\test.txt can not be created. Please ensure, path and filename is correct".
Exact German error text: "Die Datei \\freenas\temp\test.txt kann nicht erstellt werden. Stellen Sie sicher, dass Pfad- und Dateiname richtig sind".
This results in an prompt for selecting a new path and filename. Reusing the same path ends in the same error. Reusing a different allows to save the file. Deleting files is not affected though.
Problem on Mac
None, mac is able to edit the files at any time
What I do:
Logs
The logs while saving and overwriting are the same (log level medium)
Unix Rights
File settings from shell (not changed through chown,chmod)
Active Directory and Domain
cut /usr/local/etc/smb4.conf
Domain is bound probably. wbinfo -u und wbinfo -g returns users. User logon authentication and authorization works from my perspective. Checking the trust secret for somain via RPC (wbinfo -t) suceeds.
To fully disclose problems with active directory issues, I'm testing with BOTH local and domain users.
Hardware
Any idea what causes the problem and how to solve id?
Problem on Windows
It results in the error on saving:
"The file \\freenas\temp\test.txt can not be created. Please ensure, path and filename is correct".
Exact German error text: "Die Datei \\freenas\temp\test.txt kann nicht erstellt werden. Stellen Sie sicher, dass Pfad- und Dateiname richtig sind".
This results in an prompt for selecting a new path and filename. Reusing the same path ends in the same error. Reusing a different allows to save the file. Deleting files is not affected though.
Problem on Mac
None, mac is able to edit the files at any time
What I do:
- Create file on Windows with User A> Works
- Edit and save file on Windows with UserA > Works
- Edit and save file on Windows with UserB > Works
- Edit and save file on Mac with UserA > works <<<< Problem starts at this point
- Edit and save file on Mac with UserB > works
- Edit and save file on Windows with UserA or UserB does not work an more <<< Problem
Logs
The logs while saving and overwriting are the same (log level medium)
Code:
[2016/08/29 17:22:20.102644, 2] ../source3/param/loadparm.c:2701(lp_do_section) Processing section "[temp]" [2016/08/29 17:22:20.129989, 2] ../source3/smbd/open.c:1005(open_file) Domain\UserA opened file test-1.txt read=No write=No (numopen=1) [2016/08/29 17:22:20.132180, 2] ../source3/smbd/close.c:790(close_normal_file) Domain\UserA closed file test-1.txt (numopen=0) NT_STATUS_OK
Unix Rights
File settings from shell (not changed through chown,chmod)
Code:
-rw-rw-r-- 1 UserA allusers 8 Aug 29 11:52 test-by-mac.txt -rwxrwxr-x+ 1 UserB allusers 0 Aug 30 10:33 test-by-windows.txt*
Active Directory and Domain
cut /usr/local/etc/smb4.conf
Code:
[global]
server max protocol = SMB3_11
encrypt passwords = yes
dns proxy = no
strict locking = no
oplocks = yes
deadtime = 15
max log size = 51200
max open files = 588197
logging = file
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
getwd cache = yes
guest account = nobody
map to guest = Bad User
obey pam restrictions = yes
directory name cache size = 0
kernel change notify = no
panic action = /usr/local/libexec/samba/samba-backtrace
nsupdate command = /usr/local/bin/samba-nsupdate -g
server string = FreeNAS File Server
ea support = yes
store dos attributes = yes
lm announce = yes
acl allow execute always = true
dos filemode = yes
multicast dns register = yes
domain logons = no
idmap config *: backend = tdb
idmap config *: range = 90000001-100000000
server role = member server
workgroup = MYDOMAIN
realm = MYDOMAIN.LAN
security = ADS
client use spnego = yes
cache directory = /var/tmp/.cache/.samba
local master = no
domain master = no
preferred master = no
ads dns update = yes
winbind cache time = 7200
winbind offline logon = yes
winbind enum users = yes
winbind enum groups = yes
winbind nested groups = yes
winbind use default domain = no
winbind refresh tickets = yes
idmap config MYDOMAIN: backend = rid
idmap config MYDOMAIN: range = 20000-90000000
allow trusted domains = no
client ldap sasl wrapping = plain
template shell = /bin/sh
template homedir = /home/%D/%U
netbios name = FREENAS
pid directory = /var/run/samba
create mask = 0666
directory mask = 0777
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1
[temp]
path = /mnt/zfs03/temp
printable = no
veto files = /.snapshot/.windows/.mac/.zfs/
writeable = yes
browseable = yes
vfs objects = zfs_space zfsacl aio_pthread streams_xattr
hide dot files = yes
guest ok = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = true
zfsacl:acesort = dontcare
Domain is bound probably. wbinfo -u und wbinfo -g returns users. User logon authentication and authorization works from my perspective. Checking the trust secret for somain via RPC (wbinfo -t) suceeds.
To fully disclose problems with active directory issues, I'm testing with BOTH local and domain users.
Hardware
- AsRock C2750D4I
- Intel Octa Core Avoton C2750
- 16GB DDR3 1600 ECC Ram
- 4 WD Red Pro 4TB (2 stripped mirrors)
Any idea what causes the problem and how to solve id?
Last edited: