[Samba] Samba 4.1.22 Doesn't Respect Directory Overrides

alexmcwhirter at triadic.us alexmcwhirter at triadic.us
Tue Jan 31 21:09:35 UTC 2017

I have the following in the global section smb.conf

private dir = /mnt/das/samba/test/private
smb passwd file = /mnt/das/samba/test/private/smbpasswd
lock directory = /mnt/das/samba/test
state directory = /mnt/das/samba/test/state
cache directory = /mnt/das/samba/test/cache
pid directory = /mnt/das/samba/test

the samba daemon seems to respect this, but the sub-daemons do not. See 
the errors below.

samba[31531]: [2017/01/31 16:15:29.937610,  0] 
samba[31531]:   samba version 4.1.22 started.
samba[31531]:   Copyright Andrew Tridgell and the Samba Team 1992-2013
samba[20345]: [2017/01/31 16:15:39.924306,  0] 
samba[20345]:   samba: using 'standard' process model
samba[25005]: [2017/01/31 16:15:40.411075,  0] 
samba[25005]:   mkdir failed on directory /var/run/samba/ncalrpc: No 
such file or directory
samba[25005]: [2017/01/31 16:15:40.499529,  0] 
samba[25005]:   ../source4/smbd/service_named_pipe.c:206: Failed to 
create ncalrpc pipe directory '/var/run/samba/ncalrpc' - 
samba[25005]: [2017/01/31 16:15:40.501376,  0] 
samba[25005]:   stream_setup_named_pipe(pipe=\\pipe\\srvsvc) failed - 
samba[25005]: [2017/01/31 16:15:40.502233,  0] 
samba[25005]:   task_server_terminate: [Failed to startup dcerpc server 
samba[19195]: [2017/01/31 16:15:41.261322,  0] 
samba[19195]:   mkdir failed on directory /var/run/samba/winbindd: No 
such file or directory
samba[19195]: [2017/01/31 16:15:41.422128,  0] 
samba[19195]:   task_server_terminate: [Cannot create winbindd pipe 
samba[20345]: [2017/01/31 16:15:42.667135,  0] 
samba[20345]:   STATUS=daemon 'samba' finished starting up and ready to 
serve connectionssamba_terminate: Failed to startup dcerpc server task

it looks like all of the sub-daemons are trying to use /var/run even 
though i have overridden those values in smb.conf. Any ideas how to 
proceed? Right now i'm stuck with older versions as i need ntvfs (no 
posix acl's on my os). Even though it looks like there are some 
configuration options to make s3fs use tdb files instead of posix acls, 
i have not had good luck getting that to work.

More information about the samba mailing list