Bug 243836 (access, problem, share, smb) - Unable to delete or change files and folders on a samba share
Summary: Unable to delete or change files and folders on a samba share
Status: Open
Alias: access, problem, share, smb
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: kde
Keywords: pkgbase
Depends on:
Reported: 2020-02-03 09:09 UTC by bsd-bugzilla
Modified: 2020-02-18 17:12 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description bsd-bugzilla 2020-02-03 09:09:07 UTC
I am not able to delete or change files and folders on a samba share (Fritz-NAS share, mounted via fstab) neither with Dolphin nor with the KDE terminal (Konsole). Without KDE, on the shell (FreeBSD 12.1-RELEASE), it is working as well as with my smart phone. The problem is exactly reproduceable on another machine.
I also checked it out with XFCE and had no problems.
Comment 1 Gleb Popov freebsd_committer 2020-02-11 19:06:28 UTC
"mounted via fstab" isn't very clear. You mean, mounted via mount_smbfs?
Comment 2 bsd-bugzilla 2020-02-11 20:28:39 UTC
(In reply to Gleb Popov from comment #1)
Yes, I do. This is the entry in /etc/fstab:

//charles@ /mnt/nas-hdd smbfs rw,-I= 0 0

Owner group and access rights are set properly and out of KDE-Plasma on the shell (wether as root or as a normal user) there are no problems.
Comment 3 Gleb Popov freebsd_committer 2020-02-18 17:12:33 UTC
Yep, reproduced.

However, after closing Dolphin, the file can be successfully deleted from Konsole.

I think, the problem is because our implementation of QFileSystemWatcher calls open() on files being watched. In case of SMBFS this probably locks them and prevents deletion.

Not sure how to fix this, though. Make Qt see what is the type underlying filesystem is?