New comment by Anachron on void-packages repository https://github.com/void-linux/void-packages/pull/27626#issuecomment-753888015 Comment: I nuked everything and ran `nmbd` and `smbd`, yet it errors out. In my syslog: ``` 2021-01-04T10:06:45.87226 daemon.notice: Jan 4 11:06:45 smbd: smbd version 4.13.3 started. 2021-01-04T10:06:45.87259 daemon.notice: Jan 4 11:06:45 smbd: Copyright Andrew Tridgell and the Samba Team 1992-2020 2021-01-04T10:06:45.94161 daemon.notice: Jan 4 11:06:45 smbd: main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL 2021-01-04T10:06:45.94197 daemon.notice: Jan 4 11:06:45 smbd: exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13 ``` Running it in my shell (`smbd -F -S -d 6`) however returns a different error: ``` added interface eth0 ip=192.168.178.20 bcast=192.168.178.255 netmask=255.255.255.0 Netbios name list:- my_netbios_names[0]="VOID-RPI3" exit_daemon: daemon failed to start: Failed to create session, error code 1 ``` If I add `--no-process-group` when run locally I receive: ``` Finding user nobody Trying _Get_Pwnam(), username as lowercase is nobody Get_Pwnam_internals did find user [nobody]! Security token: (NULL) Security token: (NULL) Security token: (NULL) Security token: (NULL) Security token: (NULL) Security token: (NULL) Security token: (NULL) svcctl_init_winreg: Could not open SYSTEM\CurrentControlSet\Services - NT_STATUS_INVALID_HANDLE dcesrv_init_ep_server: Failed to init endpoint server 'svcctl': NT_STATUS_UNSUCCESSFUL dcesrv_init: Failed to init DCE/RPC endpoint servers: NT_STATUS_UNSUCCESSFUL main: Failed to setup RPC server: NT_STATUS_UNSUCCESSFUL exit_daemon: daemon failed to start: Samba cannot setup ep pipe, error code 13 ``` Strace: https://gist.github.com/Anachron/191a7377ed8ec35eb597a649e5014710 My `testparm` output: ``` # Global parameters [global] map to guest = Bad User passdb backend = smbpasswd security = USER server role = standalone server server string = RPI 3 B+ Share idmap config * : backend = tdb [media] path = /data/media valid users = media ``` I also realized my PID inside `/var/run/samba/smbd.pid` is wrong. That process seems to have excited (probably the parent smbd process?) Example: ``` -bash-5.0# ps -edalf | grep smbd 1 S root 8482 1 0 80 0 - 12649 ep_pol 12:42 ? 00:00:00 smbd -F -S 1 S root 8483 1 0 80 0 - 12647 ep_pol 12:42 ? 00:00:00 smbd -F -S 0 S root 8488 6387 0 80 0 - 1551 pipe_w 12:42 pts/0 00:00:00 grep smbd 0 S root 15593 263 0 80 0 - 446 do_sel Jan03 ? 00:00:00 runsv smbd 0 S root 15595 15593 0 80 0 - 482 pipe_w Jan03 ? 00:00:00 logger -p daemon notice -t smbd -bash-5.0# cat /var/run/samba/smbd.pid 8479 -bash-5.0# kill -0 8479 -bash: kill: (8479) - No such process ```