Comment 77 for bug 1872476

Revision history for this message
Bernard (ceejay) wrote :

Just hopping in to say that I'm not sure it's quite as simple as that. I'm accessing a Ubuntu 20.04 Samba share from a MacOS system and I am seeing this problem.

I have a few files which are showing as directories on my Mac (I think I don't have the problem if the file is first created from the Mac, but I do if it is created on the server).

If on the server I run 'setfattr -x user.DOSATTRIB filename' then they show up as directories.
If I run 'setfattr -n user.DOSATTRIB filename' then they disappear completely.

I did make the smb.conf change referenced above (store dos attributes = No) and then restarted smbd ... the files appeared as directories as they did before but, as I imagine you would expect, the setfattr... wasn't valid anymore.

A clunky workaround which has solved my problem for the moment was, after making that smb.conf change, to make new copies of all of the affected files and then delete the originals.

Hope that helps someone.