site  contact  subhomenews

Samba daemon startup fixed

November 14, 2021 — BarryK

Alfons reported that the Samba 'smbd' daemon failed to start. I found out why, by logging it:

# smbd -d 2 -l /mnt/sda1/temp7

...which logged to file 'log.smbd', and I saw that it failed to create directory /run/samba/ncalrpc

I know why if failed. Folder /run is a symlink to /tmp/run, and some applications fail to create a folder under a symlink. The fix is to create a non-symlink sub-folder:

# mkdir -p /run/samba

I have put this fix into /etc/init.d/rc.samba   

Tags: easy