[Samba] Multi instant samba does not work on samba 4.10.4
Peter Varkoly
peter at varkoly.de
Thu Jun 6 11:18:22 UTC 2019
Hi,
on my servers I install 2 instances of samba: one samba AD (on 3.X DC)
and an additional samba instance for printserver issues. This have
worked until version 4.8.9. With version 4.10.4 the smbd process of the
printserver instance stop with:
exit_daemon: daemon failed to start: Failed to create session, error code 1
The configuration of the AD:
global]
netbios name = admin
realm = MEINE.ORG
workgroup = MEINE
dns forwarder = 8.8.8.8 192.168.100.1
server role = active directory domain controller
idmap_ldb:use rfc2307 = Yes
check password script =
/usr/share/oss/tools/check_password_complexity.sh
winbind enum users = Yes
winbind enum groups = Yes
wide links = Yes
unix extensions = No
bind interfaces only = yes
interfaces = 127.0.0.1, 172.16.0.2
ntlm auth = yes
template shell = /bin/bash
[sysvol]
path = /var/lib/samba/sysvol
read only = No
...
The configuration of the smb-printserver:
global]
workgroup = MEINE
realm = MEINE.ORG
netbios name = printserver
printcap = cups
security = ADS
bind interfaces only = yes
interfaces = 172.16.0.4
pid directory= /run/sambaprintserver
cache directory= /var/lib/printserver
lock directory= /var/lib/printserver/lock
state directory= /var/lib/printserver
private directory= /var/lib/printserver/private
[print$]
browseable = yes
comment = Printer Drivers
create mask = 0664
directory mask = 0775
force group = SYSADMINS
guest ok = no
path = /var/lib/printserver/drivers
printable = no
write list = @SYSADMINS root
read only = no
[printers]
browseable = yes
comment = All Printers
create mask = 0600
path = /var/tmp
printable = yes
The printserver is successfully joined to the AD-domain with 'net ADS
JOIN -s /etc/samba/smb-printserver.conf -U Administrator%"$passwd"'
The separate directories of the printserver instance do exist.
I've also tried to use "server role = MEMBER SERVER" instead of
"security = ADS". The result is the same.
The service will be started:
/usr/sbin/smbd -d 10 -F -s /etc/samba/smb-printserver.conf -l
/var/log/samba/printserver/
The end of the start log is:
[2019/06/06 13:15:58.279380, 2, pid=5854, effective(0, 0), real(0, 0)]
../../source3/lib/interface.c:345(add_interface)
added interface eth1:prin ip=172.16.0.4 bcast=172.16.255.255
netmask=255.255.0.0
[2019/06/06 13:15:58.279420, 3, pid=5854, effective(0, 0), real(0, 0)]
../../source3/smbd/server.c:1851(main)
loaded services
[2019/06/06 13:15:58.279434, 5, pid=5854, effective(0, 0), real(0, 0)]
../../source3/lib/util_names.c:152(init_names)
Netbios name list:-
my_netbios_names[0]="PRINTSERVER"
[2019/06/06 13:15:58.279476, 1, pid=5854, effective(0, 0), real(0, 0)]
../../source3/profile/profile_dummy.c:30(set_profile_level)
INFO: Profiling support unavailable in this build.
[2019/06/06 13:15:58.279490, 3, pid=5854, effective(0, 0), real(0, 0)]
../../source3/smbd/server.c:1871(main)
Standard input is not a socket, assuming -D option
[2019/06/06 13:15:58.279499, 3, pid=5854, effective(0, 0), real(0, 0)]
../../source3/smbd/server.c:1883(main)
Becoming a daemon.
[2019/06/06 13:15:58.279518, 0, pid=5854, effective(0, 0), real(0, 0)]
../../lib/util/become_daemon.c:122(exit_daemon)
exit_daemon: daemon failed to start: Failed to create session, error
code 1
What's going wrong?
Thanks
Peter Varkoly
More information about the samba
mailing list