Page MenuHomeSolus

Samba bug: Can not delete non empty folder.
Closed, ResolvedPublic

Description

Description:
You can not delete a non empty folder on a samba share.

This is a known bug and has been fixed in Samba 4.8.5.
My understanding of the issue is, this is due to an error in smbclient. Which explains why I didn't notice the error until I switched my last Windows system to Solus. (Windows can delete a non empty directory from a Solus samba share. But Solus - Solus can not).

Bug 13204 - rmdir on non-empty directory fails silently
https://bugzilla.samba.org/show_bug.cgi?id=13204

Fixed in Samba 4.8.5
BUG 13204: s3/libsmb: Explicitly set delete_on_close token for rmdir.
https://www.samba.org/samba/history/samba-4.8.5.html

Event Timeline

Unknown Object (User) added a subscriber: Unknown Object (User).Sep 21 2018, 4:22 PM

This issue have been bugging me to, think i found out about it a couple of months ago, had a look at my NAS permission settings, as i thought it was caused by a software update on the NAS. Have not been able to fix it of course, now that i see it is a samba issue, thanks for filing a bug report.

I found that if i delete the files in the folder first, then i am able to delete the folder.

JoshStrobl moved this task from Backlog to Package Fixes on the Software board.
JoshStrobl added a subscriber: JoshStrobl.

Will be resolved when D3943 lands.

JoshStrobl claimed this task.

Marking as resolved since 4.8.6 has landed in unstable. If this issue persists after we've synced on Friday and you've performed a full upgrade + reboot, feel free to re-open.