I apologize for the delay, but I'm now starting to investigate this
problem.
As Christian said above, the very first step I have to take is to
reproduce the problem, but for now I am unable to do so. Here is what I
did:
1) Installed a Focal VM from scratch. Made sure that everything is up-
to-date.
2) Installed samba smbclient gvfs gvfs-backends dbus-x11.
3) Edited /etc/samba/smb.conf and added the following lines:
[testshare]
comment = Samba Shared Folder
path = /testshare
writable = yes
browsable = yes
create mask = 0660
directory mask = 0771
valid users = sergio
[testshare2]
writeable = yes
path = /testshare2
guest ok = yes
browseable = yes
follow symlinks = yes
wide links = yes
directory mask = 0755
directory mask = 0644
force user = sergio
4) Added my user to Samba using smbpasswd.
5) Created /testshare and /testshare2, then created new text files
inside them.
6) Opened Nautilus (using my regular user, not root) and mounted the
"testshare" and "testshare2" shares.
7) Also verified that I'm using SMB3_11 via smbstatus. I have also
tried forcing the usage of SMB3_02 (which is what Lee Tae Hoon said he
was using).
I verified that the text file is correctly being showed as a regular
file, not a directory. I also tried downloading some JPEG images from
the internet and putting them inside the shares, but they always show up
correctly as regular files.
I understand that this bug is affecting multiple users, but I'm trying
to find a way to reproduce it locally so that I can investigate it more.
I have a few questions:
1) Aside from the share definition you shared above, is there anything
else that you may have changed in /etc/samba/smb.conf? Would it be
possible to share the whole file, taking care to obfuscate any personal
information?
2) Can you share/examine the contents of
/var/log/samba/log.<YOUR_HOSTNAME>?
3) Can you set Samba's log level to the maximum value and reload the
share? You can set the log level by doing (as root):
# smbcontrol smbd debug 10
Then, after you refresh Nautilus, you should set the debug level back to
0:
# smbcontrol smbd debug 0
If you could share your log files under /var/log/samba/log.*, that would
be great.
Thank you.
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs