[Samba] MacOS client suddenly can't open files

Andrea Venturoli ml at netfence.it
Wed Mar 9 16:54:22 UTC 2022


Hello.

I've got a strange report, which I didn't have the chance to fully 
investigate yet.

A MacOS Monterey user works with Samba shares (on FreeBSD + Samba 
4.13.17), when suddenly she cannot open some specific files (which 
change everytime): could be one specific file, could be all files in a 
folder.

If she disconnects and reconnects again, the problem goes away.
If I rename one file server-side, then she can open it.

I tried smbstatus and it shows no lock on these files; the user says 
she's the only one accessing them at that time.
(Altough I've seen locks pertaining to this users on a folder+file which 
she says she didn't have open at that moment).


Has anyone seen something like this?
Is this a known problem?
Something obvious to look at/for?



  bye & Thanks in advance
	av.



P.S.
Relevant parts of smb.conf:
[global]
         audit:facility=LOCAL7
         audit:priority=INFO
         full_audit:success=all !closedir !connectpath !fdopendir 
!openat !readdir !realpath !stat !telldir
         full_audit:failure=all !get_real_filename !stat !translate_name
         full_audit:facility=LOCAL7
         full_audit:priority=INFO
         full_audit: prefix = IP=%I | USER=%u | MACHINE=%m | VOLUME=%S
         shadow:sort = desc
         shadow:format=-%Y%m%d%H%M%S
         shadow:delimiter=-
         shadow:snapprefix=auto_zroot
         shadow:localtime=yes
         shadow:snapdir=.zfs/snapshot
         workgroup=XXXXXXXX
         realm=XXXXXXXX.local
         security=ADS
         map archive=No
         kerberos method = secrets and keytab
         idmap config *:backend = tdb
         idmap config *:range = 100000-999999
         idmap config XXXXXXXX:backend=rid
         idmap config XXXXXXXX:range = 10000-99999
         template homedir = /home/%U
         winbind use default domain = yes
         winbind refresh tickets = Yes
         winbind expand groups = 4
         winbind normalize names = Yes
         domain master = no
         local master = no
         map acl inherit = Yes
         store dos attributes = Yes
         unix extensions=no
         audit:facility=LOCAL7
         audit:priority=INFO
         min protocol=SMB2
         vfs objects=audit fruit streams_xattr recycle shadow_copy2
         fruit:wipe_intentionally_left_blank_rfork = yes
         fruit:delete_empty_adfiles = yes
         fruit:metadata = stream
         fruit:resource = xattr
         fruit:nfs_aces = no
         recycle:repository=Cestino
         recycle:keeptree=yes
         recycle:versions=yes
         recycle:exclude=.*

[myshare]
         path=/shares/myshare
         writeable=yes
         follow symlinks=no
         force create mode=660
         force directory mode=770
         valid users=aaaaa,bbbbb



More information about the samba mailing list