New comment by Anachron on void-packages repository https://github.com/void-linux/void-packages/pull/27626#issuecomment-754138548 Comment: My cleaning script: ``` #!/bin/sh sv stop nmbd smbd ! pgrep -f "nmbd -F -S" || kill -9 $(pgrep -f "mbd -F -S") rm -rf /var/run/samba /var/cache/samba /var/lib/samba ! test -d /etc/samba || mv /etc/samba /etc/samba-$(date +%Y%m%d-%H%M%S).bak rm /var/service/smbd /var/service/nmbd xbps-remove -R smbclient samba samba-libs ``` My install script: ``` #!/bin/sh xbps-install ${@} --repository="${HOME}/pr-27626" samba smbclient ``` Using the default `smb.conf` (minus printers) ``` [global] workgroup = MYGROUP server string = Samba Server server role = standalone server log file = /var/log/samba/%m.log max log size = 50 dns proxy = no [homes] comment = Home Directories browseable = no writable = yes ``` nmbd is fine: ``` 2021-01-04T18:16:35.97146 daemon.notice: Jan 4 19:16:35 nmbd: Samba name server VOID-RPI3 is now a local master browser for workgroup MYGROUP on subnet 192.168.178.20 ``` But smbd is still erroring: ``` 2021-01-04T18:16:36.30801 daemon.notice: Jan 4 19:16:36 smbd: smbd version 4.13.3 started. 2021-01-04T18:16:36.30821 daemon.notice: Jan 4 19:16:36 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020 2021-01-04T18:16:36.38221 daemon.notice: Jan 4 19:16:36 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL 2021-01-04T18:16:36.38247 daemon.notice: Jan 4 19:16:36 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13 2021-01-04T18:16:37.70446 daemon.notice: Jan 4 19:16:37 smbd: smbd version 4.13.3 started. 2021-01-04T18:16:37.70471 daemon.notice: Jan 4 19:16:37 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020 2021-01-04T18:16:37.77915 daemon.notice: Jan 4 19:16:37 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL 2021-01-04T18:16:37.77944 daemon.notice: Jan 4 19:16:37 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13 ``` Versions: ``` -bash-5.0# xbps-query -p pkgver samba samba-4.13.3_1 -bash-5.0# xbps-query -p pkgver smbclient smbclient-4.13.3_1 -bash-5.0# xbps-query -p pkgver samba-libs samba-libs-4.13.3_1 -bash-5.0# uname -r 5.4.68_1 ``` Edit: 1. Are you using the standard smbd and nmbd services or did you write your own? My /run/samba/smbd.pid contains the correct PID and smbd is parented by runsv as expected. My service files are default, removing `--no-process-group` has no positive effect whatsoever. 2. Is /var/run a symlink to /run on your system? Samba is configured to use /run/samba, but /var/run should point to that anyway. Its a symlink to `../run`.