[Samba] Extended attributes not working on mac

Martin Steiner / 3MF GmbH martin.steiner at 3mf-media.de
Sat May 30 18:00:32 UTC 2020


I changed the configuration and raised the log level, in my opion samba tries to access the non existent double files.
Samba is now probably writing the data in a netatalk compliant way in the extended attributes of the file but is not reading it.

new configuration:

[Global]
min protocol = SMB2
vfs objects = catia fruit streams_xattr
fruit:metadata = stream
fruit:resource = stream
fruit:encoding = native
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
streams_xattr:prefix = 
streams_xattr:store_stream_type = no
dos charset = CP932
log level = 3 vfs:5

[Buchhaltung]
vfs objects = catia fruit streams_xattr
path = /home/buchhaltung
read only = No
valid users = martin
fruit:resource = stream
fruit:metadata = stream
fruit:encoding = native
streams_xattr:prefix = 
streams_xattr:store_stream_type = no

------------------------------------------

Xattr binary is not working, so i used attr:

attr -g "com.apple.metadata:_kMDItemUserTags" test.numbers
Attribute "com.apple.metadata:_kMDItemUserTags" had a 54 byte value for test.numbers:
bplist00�XOrange
7

------------------------------------------

xattr on my mac tells nothing, but when i try i get the following error in the samba log on the ubuntu server:

[2020/05/30 19:54:27.887673,  3] ../../source3/smbd/smb2_server.c:3264(smbd_smb2_request_error_ex)
 smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at ../../source3/smbd/smb2_query_directory.c:159



More information about the samba mailing list