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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1872476

Title:
  Shared files are shown as folders

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1872476/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to