I am having a lot of trouble with samba, and I really don't know what to do anymore ...
I have a htpc running gentoo and samba that contains all my files. I also have a desktop pc from which I connect to it. My issue is that everything is always locked and it's just not usable as it is...
So for example, I create an empty text file. I try to edit it with kate; I save. It will fail because of permission issue. Kate will also create some temp file next to it, and it will throw an error because it is unable to delete it. If I try to delete it manually, it will also fail and dolphin will display an error that the device is busy.
Rebooting the smb service will allow me to delete the file, as with killing the processes displayed in smbstatus. But the issue will reappear the next time I try something.
This issue will happen both by mounting the share in /etc/fstab using cifs, or by accessing it in dolphin with smb://<ip>/share
What I noticed also was really a lot of files being locked when running smbstatus on the server in RDONLY mode. What is opening them? Dolphin? Is there a way to turn that off ?
I tried the samba server + client both from amd64 and ~amd64 with default USE, both have the same issue...
I tried using kernel-gentoo-bin to minimize potential issues, it did not fix it
I tried using 'locking = no' and 'oplocks = no' in my [share] section of my smb.conf, it did not fix it
I tried using 'create mask = 777', no effect
I tried using 'server max protocol = NT1' and then I wasn't able to connect to it anymore.
I also see a lot of spam in the journal about
Code: Select all
oct 16 01:06:36 hostname smbd[1105985]: [2021/10/16 01:06:36.182951, 0] ../../source3/smbd/close.c:1402(close_directory)
oct 16 01:06:36 hostname smbd[1105985]: close_directory: Could not delete share entry for .Could someone help me please?
Thank you very much


