Bug 15626 - Samba VFS Objects broken on OpenBSD
Summary: Samba VFS Objects broken on OpenBSD
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.19.6
Hardware: x64 OpenBSD
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-10 10:18 UTC by Ian McWilliam
Modified: 2024-04-17 00:41 UTC (History)
0 users

See Also:


Attachments
smdb client log (436.67 KB, text/plain)
2024-04-10 10:18 UTC, Ian McWilliam
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian McWilliam 2024-04-10 10:18:44 UTC
Created attachment 18284 [details]
smdb client log

macOS 12.7.4 connecting to Samba 4.19.6 fileserver won't delete folders/files

Darwin kristamari-w1.XXX.XXX.XXX 21.6.0 Darwin Kernel Version 21.6.0: Mon Feb 19 20:24:34 PST 2024; root:xnu-8020.240.18.707.4~1/RELEASE_X86_64 x86_64

Fileserver is running under OpenBSD 7.5-stable.

OpenBSD ianm-openbsd-stable.localdomain 7.5 GENERIC.MP#1 amd64

Files copied from the mac to the share root level can be deleted.

Folders containing files copied from the mac to  the share root level cannot be deleted. Finder gives an inuse error message when trying to delete the folder containing files. Trying to delete a file in the folder appears to succeed but going out and back into the folder, the file reappears.

/var/log/daemon shows

Apr 10 11:11:52 ianm-openbsd-stable smbd[16939]: [2024/04/10 11:11:52.680984,  0, pid=16939, effective(0, 0), real(0, 0)] ../../source3/smbd/server.c:1748(main)
Apr 10 11:11:52 ianm-openbsd-stable smbd[16939]:   smbd version 4.19.6 started.

...

Apr 10 11:12:24 ianm-openbsd-stable smbd[51824]: [2024/04/10 11:12:24.943940,  0, pid=51824, effective(1000, 1000), real(0, 0), class=vfs] ../../source3/smbd/vfs.c:1081(vfs_GetWd)
Apr 10 11:12:24 ianm-openbsd-stable smbd[51824]:   vfs_GetWd: SMB_VFS_GETWD call failed: Permission denied
Apr 10 11:12:24 ianm-openbsd-stable smbd[51824]: [2024/04/10 11:12:24.948690,  0, pid=51824, effective(1000, 1000), real(0, 0), class=vfs] ../../source3/smbd/vfs.c:1081(vfs_GetWd)
Apr 10 11:12:24 ianm-openbsd-stable smbd[51824]:   vfs_GetWd: SMB_VFS_GETWD call failed: Permission denied

ianm-openbsd-stable:ianm {127} userinfo ianm
login	ianm
passwd	*
uid	1000
groups	ianm wheel wsrc staff
change	NEVER
class	staff
gecos	Ian XXXXXX,,,
dir	/usr/home/ianm
shell	/usr/local/bin/tcsh
expire	NEVER

ianm-openbsd-stable:ianm {128} groupinfo ianm
name	ianm
passwd	*
gid	1000
members

ianm-openbsd-stable:ianm {119} ls -al untitled\ folder/
total 71176
drwxr-xr-x   2 ianm  ianm       512 Apr 10 11:09 .
drwxr-xr-x  10 ianm  ianm       512 Apr 10 11:04 ..
-rwxr--r--   1 ianm  ianm  36419280 Sep 22  2023 EBOOK158 - AllAboutAmpsVol20.pdf


Another Openbsd 7.5-stable server running samba file server 4.19.5 does not exhibit this behaviour.
Comment 1 Ian McWilliam 2024-04-15 05:20:53 UTC
vfs objects = acl_tdb

is the issue. Not enabling the acl_tbd vfs object allow files and folders to be deleted again. I suspect this has been broken on OpenBSD for some time as I have it disabled on all my other samba instances where it was once enabled.