Hi,

Nothing up my sleeves, no rabbit in my hat…

ianm-openbsd:ianm {104} smbclient //192.168.1.172/stuff -U ianm
Password for [IANM-TEST\ianm]:
Try "help" to get a list of possible commands.
smb: \> ls    
  .                                   D        0  Fri Nov 20 11:40:48 2026
  ..                                  D        0  Fri Nov 20 11:40:48 2026
  .DS_Store                          AH     8196  Sun Oct 25 23:23:09 2026
  Datacentre Essentials               D        0  Mon Jun 15 20:24:39 2026
  DCA - Introduction to Critical Environment     DA        0  Mon Mar  2 
10:55:29 2026
  Death in Paradise - BBC iPlayer.url      A      306  Tue Jan  6 08:35:55 2026
  eMudhra Intermediate CA Compromise.url      A      239  Thu Oct 22 13:05:55 
2026
  IAT - Artificial Intelligence Work Integrated Learning     DA        0  Fri 
Feb 27 15:19:07 2026
  iview-bulk-downloaded.txt           A    16235  Sat Nov 14 19:02:36 2026
  iview-bulk-pending.txt              A     5263  Sat Jul 18 18:19:12 2026
  iview-bulk.txt                      A      740  Fri Nov 20 11:31:48 2026
  links.txt                           A    29028  Sun Mar  1 21:16:11 2026
  mt86plus_9.00_x86_64.grub.iso.zip      N  6602769  Tue Oct 27 17:53:27 2026
  OpenBSD_8.0_amd64_stable.iso        A 1391886336  Thu Nov 19 19:07:31 2026
  OpenBSD_8.0_amd64_stable_packages.iso      A 1961746432  Thu Nov 19 19:08:09 
2026
  Oral Health Fee for Service Scheme      D        0  Fri Feb 13 11:07:26 2026
  Pina Colada                         D        0  Fri Feb 13 17:16:40 2026
  Pina Colada 2                       D        0  Sat Sep  6 17:59:03 2025
  Time Team Missing Episodes.txt      A     1296  Mon Nov 16 09:42:03 2026
  updates                             D        0  Thu Oct 22 15:51:52 2026
  vids                                D        0  Sat Nov 14 18:38:53 2026
  vmt4.diff                           A     1752  Fri Nov 20 11:40:48 2026
  VMware-tools-windows-13.1.5-25544008.iso      N 142102528  Fri Oct 16 
17:20:50 2026
  youtube-bulk-pending.txt            A      581  Sun Aug  2 16:23:48 2026
  youtube-bulk.txt                    A     1356  Sat Nov 21 18:32:14 2026

                219544708 blocks of size 4096. 25275559 blocks available
smb: \> quit
ianm-openbsd:ianm {105} whoami
ianm
ianm-openbsd:ianm {106} ls -al /var/run/
total 248
drwxr-xr-x   4 root  wheel      512 Nov 22 12:20 .
drwxr-xr-x  29 root  wheel      512 Nov 21 08:00 ..
srw-rw----   1 root  wheel        0 Nov 22 10:54 apmdev
srw-rw----   1 root  crontab      0 Nov 22 10:54 cron.sock
-rw-r--r--   1 root  wheel    49152 Nov 22 10:54 dev.db
-rw-r--r--   1 root  wheel     9318 Nov 22 10:54 dmesg.boot
-r--r--r--   1 root  wheel    43615 Nov 22 11:29 ld.so.hints
srw-rw----   1 root  wheel        0 Nov 22 10:54 ntpd.sock
drwxr-xr-x   2 root  wheel      512 Nov 22 10:54 rc.d
srw-rw-rw-   1 root  wheel        0 Nov 22 10:54 smtpd.sock
-rw-r--r--   1 root  wheel        6 Nov 22 10:54 sshd.pid
drwx--x--x   3 root  wheel      512 Nov 22 10:54 sudo
-rw-r--r--   1 root  wheel        6 Nov 22 10:54 syslog.pid
-rw-rw-r--   1 root  utmp      9728 Nov 22 12:23 utmp

So Samba’s own smbclient doesn’t complain about a missing /var/run/samba

OpenBSD 8.0-current (GENERIC.MP) #163: Fri Nov 20 15:33:06 CST 2026

samba-4.25.1v0      SMB and CIFS client and server for UNIX

susmb - mount SMB shares via FUSE and Samba

Copyright (C) 2025-2026 Hiltjo Posthuma.
Copyright (C) 2006-2013 Geoff Johnstone.

Licensed under the GNU General Public License.
susmb comes with ABSOLUTELY NO WARRANTY; for details please see
http://www.gnu.org/licenses/gpl.txt

Please send bug reports, patches etc. to [email protected]

susmb version: 0.9
FUSE version: 2.6
Samba version: 4.25.1


I’ll fire up a 8.0-stable vm and see if Samba's behaviour is different. 


Ian McWilliam

> On 21 Nov 2026, at 23:41, Stuart Henderson <[email protected]> wrote:
> 
> On 2026/11/21 10:03, Ian McWilliam wrote:
>> Hi,
>> 
>> 
>> starting the samba server so that /var/run/samba exists works the same. 
>> Mounts the share without error messages about /var/run/samba.
>> 
>> 
>> a working samba server has this in /var/run/samba
>> 
>> ianm-openbsd:ianm {104} ls -al /var/run/samba/
>> total 676
>> drwxr-xr-x  5 root  wheel    512 Nov 21 09:36 .
>> drwxr-xr-x  5 root  wheel    512 Nov 21 09:36 ..
>> -rw-r-----  1 root  wheel  40200 Nov 21 09:36 brlock.tdb
>> -rw-------  1 root  wheel    696 Nov 21 09:36 g_lock.tdb
>> -rw-r-----  1 root  wheel  53248 Nov 21 09:39 gencache.tdb
>> -rw-r-----  1 root  wheel  40200 Nov 21 09:36 leases.tdb
>> -rw-r-----  1 root  wheel  40200 Nov 21 09:36 locking.tdb
>> drwxr-xr-x  2 root  wheel    512 Nov 21 09:36 msg.lock
>> -rw-r-----  1 root  wheel  12288 Nov 21 09:39 names.tdb
>> drwxr-xr-x  3 root  wheel    512 Nov 21 09:36 ncalrpc
>> drwxr-xr-x  2 root  wheel    512 Nov 21 09:36 nmbd
>> -rw-r--r--  1 root  wheel      6 Nov 21 09:36 nmbd.pid
>> -rw-------  1 root  wheel    696 Nov 21 09:36 smbXsrv_client_global.tdb
>> -rw-------  1 root  wheel  40200 Nov 21 09:36 smbXsrv_open_global.tdb
>> -rw-------  1 root  wheel  40200 Nov 21 09:36 smbXsrv_session_global.tdb
>> -rw-------  1 root  wheel  40200 Nov 21 09:36 smbXsrv_tcon_global.tdb
>> -rw-------  1 root  wheel  16384 Nov 21 09:39 smbXsrv_version_global.tdb
>> -rw-r--r--  1 root  wheel      6 Nov 21 09:36 smbd.pid
>> 
>> 
>> Not sure that I want another port playing there while the server is running.
> 
> The only thing which might be touching files in there is samba's own
> libsmbclient.
> 
> susmb is a small (~1400 line) wrapper around that and fuse.
> 
> 
> 
>> 
>> ianm-openbsd:ianm {109} mount
>> /dev/sd0a on / type ffs (local)
>> /dev/sd0e on /tmp type ffs (local, nodev, nosuid)
>> /dev/sd0d on /usr type ffs (local, nodev, wxallowed)
>> /dev/sd0f on /var type ffs (local, nodev, nosuid)
>> /dev/sd1a on /dest type ffs (local, nodev, noexec, noperm)
>> /dev/sd2a on /usr/iso type ffs (local, nodev, nosuid)
>> /dev/sd3a on /usr/ports type ffs (local, nodev, wxallowed)
>> /dev/sd4a on /var/src-code type ffs (local, nodev, nosuid)
>> fusefs on /mnt/stuff type fuse
>> 
>> The test script i’m using to mount the share looks like this.
>> 
>> #!/bin/sh
>> 
>> MNT="/mnt"
>> 
>> # XXX user running script.
>> SMB_USER="ianm"
>> SMB_UID=1000
>> SMB_GUID=1000
>> 
>> OPTIONS="'uid=${SMB_UID},gid=${SMB_UID},allow_other'"
>> 
>> # XXX args to get
>> # get domain/user
>> # get server name / IP
>> # get share name
>> 
>> if [ "$(id -u)" != "0" ]; then
>>      printf "This script must be run as root\n" 1>&2
>>      exit 1
>> fi
>> 
>> # XXX check for mount directory, etc...
>> 
>> 
>> susmb \
>>      -u "${SMB_USER}" \
>>      -f \
>>      -o "uid=${SMB_UID},gid=${SMB_UID},allow_other" \
>>      "smb://[email protected]/stuff" \
>>      "${MNT}"/stuff
>> 
>> #    -o "${OPTIONS}” \
>> 
>> 
>> 
>> 
>>> On 20 Nov 2026, at 19:38, Stuart Henderson <[email protected]> wrote:
>>> 
>>> not using this port, but, "There is no /var/run/samba on this vm" - is 
>>> there any difference if /var/run/samba *does* exist?
>>> 
>>> -- 
>>>  Sent from a phone, apologies for poor formatting.
>>> 
>>> 
>>> On 20 November 2026 01:05:37 Ian McWilliam <[email protected]> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I am currently mounting a win 10 share using the susmb  port. 
>>>> 
>>>> There is no /var/run/samba on this vm. This is my samba build / test 
>>>> virtual machine.
>>>> 
>>>> ianm-openbsd:usr {133} ldd /usr/local/bin/susmb 
>>>> /usr/local/bin/susmb:
>>>> Start            End              Type  Open Ref GrpRef Name
>>>> 0000012ff1e78000 0000012ff1e82000 exe   2    0   0      
>>>> /usr/local/bin/susmb
>>>> 000001321ec3d000 000001321ec6a000 rlib  0    1   0      
>>>> /usr/local/lib/libsmbclient.so.6.3
>>>> 00000132ef162000 00000132ef173000 rlib  0    1   0      
>>>> /usr/lib/libfuse.so.4.0
>>>> 000001324c94d000 000001324ca56000 rlib  0    76   0      
>>>> /usr/lib/libc.so.104.0
>>>> 000001322e052000 000001322e057000 rlib  0    37   0      
>>>> /usr/local/lib/samba/libreplace-private-samba.so
>>>> 00000132270f1000 0000013227109000 rlib  0    23   0      
>>>> /usr/local/lib/libtevent.so.2.4
>>>> 00000132242c5000 0000013224314000 rlib  0    21   0      
>>>> /usr/local/lib/samba/libsamba-security-private-samba.so
>>>> 0000013262e1f000 0000013262e27000 rlib  0    1   0      
>>>> /usr/local/lib/samba/liblibcli-lsa3-private-samba.so
>>>> 00000132076a9000 0000013207749000 rlib  0    5   0      
>>>> /usr/local/lib/libsmbconf.so.20.0
>>>> 0000013299175000 0000013299197000 rlib  0    32   0      
>>>> /usr/local/lib/libndr.so.4.1
>>>> 000001326f14e000 000001326f278000 rlib  0    32   0      
>>>> /usr/local/lib/libsamba-errors.so.2.1
>>>> 00000132706ec000 000001327071e000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libmsrpc3-private-samba.so
>>>> 000001320052c000 000001320056a000 rlib  0    18   0      
>>>> /usr/local/lib/libsamba-hostconfig.so.20.0
>>>> 000001328c1e9000 000001328c1f0000 rlib  0    20   0      
>>>> /usr/local/lib/libtevent-util.so.2.0
>>>> 00000132be1a5000 00000132be210000 rlib  0    2   0      
>>>> /usr/local/lib/samba/liblibsmb-private-samba.so
>>>> 00000132d2fcc000 00000132d3049000 rlib  0    45   0      
>>>> /usr/local/lib/libsamba-util.so.15.0
>>>> 00000132c83e8000 00000132c859e000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libdcerpc-samba-private-samba.so
>>>> 000001327c0aa000 000001327c0b6000 rlib  0    43   0      
>>>> /usr/local/lib/samba/libsamba-debug-private-samba.so
>>>> 0000013237397000 00000132373a3000 rlib  0    7   0      
>>>> /usr/local/lib/samba/libsamba3-util-private-samba.so
>>>> 00000132bce42000 00000132bce49000 rlib  0    31   0      
>>>> /usr/local/lib/samba/libgenrand-private-samba.so
>>>> 0000013227411000 000001322742e000 rlib  0    8   0      
>>>> /usr/local/lib/libsamba-credentials.so.3.1
>>>> 00000132b9308000 00000132b96dd000 rlib  0    7   0      
>>>> /usr/local/lib/libndr-standard.so.6.2
>>>> 00000132843da000 0000013284421000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libgse-private-samba.so
>>>> 000001321e707000 000001321e733000 rlib  0    3   0      
>>>> /usr/local/lib/libdcerpc-binding.so.5.1
>>>> 00000132e459a000 00000132e45e7000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libcli-smb-common-private-samba.so
>>>> 00000132ee10a000 00000132ee11f000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libsecrets3-private-samba.so
>>>> 0000013215e11000 0000013215e1f000 rlib  0    58   0      
>>>> /usr/local/lib/libtalloc.so.1.4
>>>> 0000013263274000 0000013263279000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libstable-sort-private-samba.so
>>>> 0000013253aa7000 0000013253c79000 rlib  0    13   0      
>>>> /usr/local/lib/samba/libndr-samba-private-samba.so
>>>> 000001320e6f2000 000001320e96d000 rlib  0    10   0      
>>>> /usr/local/lib/libgnutls.so.47.14
>>>> 0000013283d2d000 0000013283d33000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libsamba-cluster-support-private-samba.so
>>>> 000001322ad00000 000001322ad06000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libserver-id-db-private-samba.so
>>>> 000001323733b000 0000013237340000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libtalloc-report-printf-private-samba.so
>>>> 00000132ca401000 00000132ca406000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libutil-reg-private-samba.so
>>>> 00000132c3136000 00000132c313c000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libinterfaces-private-samba.so
>>>> 00000132d8a64000 00000132d8a6a000 rlib  0    8   0      
>>>> /usr/local/lib/samba/libutil-tdb-private-samba.so
>>>> 000001324f56d000 000001324f590000 rlib  0    15   0      
>>>> /usr/local/lib/samba/libsamba-sockets-private-samba.so
>>>> 0000013292c8c000 0000013292c92000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libCHARSET3-private-samba.so
>>>> 00000132b841c000 00000132b8420000 rlib  0    10   0      
>>>> /usr/local/lib/samba/libsocket-blocking-private-samba.so
>>>> 0000013281064000 0000013281075000 rlib  0    8   0      
>>>> /usr/local/lib/samba/libdbwrap-private-samba.so
>>>> 00000132eaf9a000 00000132eafa0000 rlib  0    4   0      
>>>> /usr/local/lib/samba/libsys-rw-private-samba.so
>>>> 0000013214889000 0000013214898000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libmessages-dgm-private-samba.so
>>>> 00000132921e3000 00000132921e7000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libmessages-util-private-samba.so
>>>> 000001323d179000 000001323d17e000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libsmbd-shim-private-samba.so
>>>> 000001323e3c3000 000001323e3c8000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libtdb-wrap-private-samba.so
>>>> 00000132d9562000 00000132d9567000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libserver-role-private-samba.so
>>>> 000001327b95c000 000001327b960000 rlib  0    6   0      
>>>> /usr/local/lib/samba/libtime-basic-private-samba.so
>>>> 000001327925a000 000001327925f000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libutil-setid-private-samba.so
>>>> 0000013241a4a000 0000013241b62000 rlib  0    6   0      
>>>> /usr/local/lib/libiconv.so.7.2
>>>> 000001322155f000 0000013221578000 rlib  0    8   0      
>>>> /usr/local/lib/libtdb.so.4.4
>>>> 000001325fc12000 000001325fc30000 rlib  0    4   0      
>>>> /usr/lib/libz.so.7.2
>>>> 000001327efc1000 000001327f02a000 rlib  0    2   0      
>>>> /usr/local/lib/libldap.so.16.0
>>>> 0000013231c9e000 0000013231cb2000 rlib  0    2   0      
>>>> /usr/local/lib/liblber.so.16.0
>>>> 00000131fec68000 00000131fee95000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libndr-samba4-private-samba.so
>>>> 00000132e6e78000 00000132e6e84000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libnpa-tstream-private-samba.so
>>>> 00000131f519f000 00000131f51ba000 rlib  0    5   0      
>>>> /usr/local/lib/samba/libcliauth-private-samba.so
>>>> 0000013214974000 00000132149a9000 rlib  0    5   0      
>>>> /usr/local/lib/samba/libgensec-private-samba.so
>>>> 00000131f244b000 00000131f245d000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libcommon-auth-private-samba.so
>>>> 00000132ab196000 00000132ab1b6000 rlib  0    7   0      
>>>> /usr/local/lib/samba/libauthkrb5-private-samba.so
>>>> 000001324483f000 000001324484c000 rlib  0    2   0      
>>>> /usr/lib/libexecinfo.so.5.0
>>>> 0000013268e3c000 0000013268e88000 rlib  0    6   0      
>>>> /usr/local/lib/samba/libgssapi-private-samba.so
>>>> 000001321d454000 000001321d488000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libldbsamba-private-samba.so
>>>> 00000132180d3000 000001321810e000 rlib  0    7   0      
>>>> /usr/local/lib/libldb.so.2.4
>>>> 000001320af7e000 000001320af8e000 rlib  0    6   0      
>>>> /usr/local/lib/samba/libkrb5samba-private-samba.so
>>>> 00000131f7944000 00000131f794a000 rlib  0    12   0      
>>>> /usr/local/lib/samba/libcom-err-private-samba.so
>>>> 00000132d2c8f000 00000132d2cd0000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libsamdb-common-private-samba.so
>>>> 00000132903e1000 0000013290480000 rlib  0    7   0      
>>>> /usr/local/lib/samba/libkrb5-private-samba.so
>>>> 000001329a6dd000 000001329a70f000 rlib  0    9   0      
>>>> /usr/local/lib/libndr-nbt.so.2.2
>>>> 00000132ce719000 00000132ce721000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libcli-cldap-private-samba.so
>>>> 0000013282972000 000001328297d000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libaddns-private-samba.so
>>>> 000001326b4ab000 000001326b4b5000 rlib  0    5   0      
>>>> /usr/local/lib/samba/libcli-ldap-common-private-samba.so
>>>> 000001322c541000 000001322c54b000 rlib  0    8   0      
>>>> /usr/local/lib/samba/libasn1util-private-samba.so
>>>> 00000132784fd000 0000013278514000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libcli-ldap-private-samba.so
>>>> 0000013246b74000 0000013246b81000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libcli-nbt-private-samba.so
>>>> 0000013271edd000 0000013271ee1000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libiov-buf-private-samba.so
>>>> 00000132a8598000 00000132a85bf000 rlib  0    4   0      
>>>> /usr/local/lib/libndr-krb5pac.so.1.4
>>>> 000001329a336000 000001329a36e000 rlib  0    2   0      
>>>> /usr/local/lib/libintl.so.8.2
>>>> 00000132ee2b7000 00000132ee4c2000 rlib  0    1   0      
>>>> /usr/local/lib/libp11-kit.so.3.2
>>>> 00000132e8811000 00000132e881e000 rlib  0    5   0      
>>>> /usr/lib/libpthread.so.28.1
>>>> 0000013213e9d000 0000013213eab000 rlib  0    2   0      
>>>> /usr/local/lib/libffi.so.2.7
>>>> 000001324e359000 000001324e3ac000 rlib  0    1   0      
>>>> /usr/local/lib/libidn2.so.1.1
>>>> 00000132c81cc000 00000132c836c000 rlib  0    2   0      
>>>> /usr/local/lib/libunistring.so.0.1
>>>> 00000132e4ea5000 00000132e4ebd000 rlib  0    1   0      
>>>> /usr/local/lib/libtasn1.so.4.2
>>>> 00000132bd6fe000 00000132bd749000 rlib  0    1   0      
>>>> /usr/local/lib/libhogweed.so.4.0
>>>> 000001326c4b1000 000001326c50f000 rlib  0    2   0      
>>>> /usr/local/lib/libnettle.so.8.0
>>>> 000001325074d000 00000132507d3000 rlib  0    2   0      
>>>> /usr/local/lib/libgmp.so.11.1
>>>> 00000132ce854000 00000132ce859000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libmsghdr-private-samba.so
>>>> 00000132a0cd4000 00000132a0cf5000 rlib  0    1   0      
>>>> /usr/local/lib/libsasl2.so.3.1
>>>> 00000132dc06f000 00000132dc2c7000 rlib  0    3   0      
>>>> /usr/lib/libcrypto.so.57.2
>>>> 000001322cf4d000 000001322cfbd000 rlib  0    1   0      
>>>> /usr/lib/libssl.so.60.2
>>>> 00000132bdae6000 00000132bdaec000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libsamba-modules-private-samba.so
>>>> 0000013284b20000 0000013284b37000 rlib  0    1   0      
>>>> /usr/local/lib/libwbclient.so.5.1
>>>> 000001325c299000 000001325c2b9000 rlib  0    1   0      
>>>> /usr/local/lib/libsamdb.so.6.0
>>>> 0000013289632000 0000013289637000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libMESSAGING-SEND-private-samba.so
>>>> 0000013276431000 0000013276451000 rlib  0    1   0      
>>>> /usr/local/lib/libjansson.so.4.3
>>>> 000001325e0d2000 000001325e0ea000 rlib  0    6   0      
>>>> /usr/local/lib/samba/libroken-private-samba.so
>>>> 0000013210ea2000 0000013210ee4000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libhcrypto-private-samba.so
>>>> 0000013238d3c000 0000013238df0000 rlib  0    5   0      
>>>> /usr/local/lib/samba/libasn1-private-samba.so
>>>> 000001324975c000 0000013249781000 rlib  0    3   0      
>>>> /usr/local/lib/samba/libheimbase-private-samba.so
>>>> 0000013212e55000 0000013212e5c000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libsamba-security-trusts-private-samba.so
>>>> 0000013221f51000 0000013221f56000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libflag-mapping-private-samba.so
>>>> 000001323be22000 000001323be4d000 rlib  0    2   0      
>>>> /usr/local/lib/samba/libwind-private-samba.so
>>>> 000001329c13c000 000001329c18a000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libhx509-private-samba.so
>>>> 00000132bb899000 00000132bb8a3000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libclidns-private-samba.so
>>>> 00000132d68eb000 00000132d68f2000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libnetif-private-samba.so
>>>> 00000132ac16d000 00000132ac172000 rlib  0    1   0      
>>>> /usr/local/lib/samba/libcluster-private-samba.so
>>>> 000001321c91a000 000001321c91a000 ld.so 0    1   0      /usr/libexec/ld.so
>>>> 
>>>> 
>>>> While there is a lot of samba linked to susmb that could imply tdb 
>>>> databases, nothing in /var/samba is touched or created. If it was I would 
>>>> be concerned as this is where a samba server stores important information.
>>>> 
>>>> I’d leave the port as is.
>>>> 
>>>> 
>>>> Ian McWilliam
>>>> 
>>>>> On 20 Nov 2026, at 04:25, Hiltjo Posthuma <[email protected]> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I've privately e-mailed to ask for more details, but did not get a 
>>>>> response to:
>>>>> 
>>>>> I cannot reproduce the issue on OpenBSD 8.0.
>>>>> 
>>>>> On my simple network share it does not read /var/run/samba I think (I 
>>>>> checked
>>>>> the ktrace log).
>>>>> Running a ktrace I see it tries to read files from /etc/samba/.
>>>>> However for susmb it should be used stand-alone (smb:// as the 
>>>>> applications
>>>>> arguments) and not use share names from /etc/samba/ or so.
>>>>> 
>>>>> I'm willing to loosen unveil() a bit, maybe an unveil("/var/run/samba", 
>>>>> "r") if
>>>>> it is really neccesary.
>>>>> 
>>>>> Could you provide more information of your config?  Maybe a ktrace or 
>>>>> specific
>>>>> added Samba modules? I need more information and details.
>>>>> 
>>>>> Thank you,
>>>>> 
>>>>> On Mon, Nov 09, 2026 at 05:47:57PM +0100, Benjamin Stürz wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> thanks for the port, but the unveil() rules are too strict.
>>>>>> It needs at least /var/run/samba to work correctly.
>>>>>> 
>>>>>> After writing an LD_PRELOAD shim that bypasses the unveil() calls,
>>>>>> mounting works. Otherwise susmb fails on OpenBSD 8.0 with:
>>>>>> 
>>>>>> directory_create_or_exist: mkdir failed on directory /var/run/samba: No 
>>>>>> such
>>>>>> file or directory
>>>>>> directory_create_or_exist: mkdir failed on directory /var/run/samba: No 
>>>>>> such
>>>>>> file or directory
>>>>>> Connection failed: Invalid argument
>>>>>> 
>>>>>> 
>>>>>> Kind Regards,
>>>>>> Benjamin Stürz
>>>>>> 
>>>>>> On 2/21/26 5:28 PM, Pascal Stumpf wrote:
>>>>>>> susmb lets you mount SMB/CIFS shares via FUSE, in the vein of the
>>>>>>> Map Network Drive functionality in Windows.
>>>>>>> 
>>>>>>> 
>>>>>>> This is a fork of usmb, most notably adding privdrop and unveil(2), and
>>>>>>> getting rid of the XML config file.  Patches from sysutils/usmb have
>>>>>>> also been incorporated.
>>>>>> 
>>>>> 
>>>>> -- 
>>>>> Kind regards,
>>>>> Hiltjo

Reply via email to