Hai, Few steps to see whats happening with some output. Below is shown with 4.9.1 *(own package) but it also happens with 4.9.0. ( exact the same. )
On a clean new installed debian (stretch) server. apt-get install samba winbind ..... ..... Load smb config files from /etc/samba/smb.conf Loaded services file OK. Server role: ROLE_STANDALONE Done Setting up samba-dsdb-modules:amd64 (2:4.9.1+nmu-1~deb9) ... Setting up winbind (2:4.9.1+nmu-1~deb9) ... mkdir: created directory '/var/lib/samba/winbindd_privileged' changed group of '/var/lib/samba/winbindd_privileged' from root to winbindd_priv mode of '/var/lib/samba/winbindd_privileged' changed from 0755 (rwxr-xr-x) to 0750 (rwxr-x---) Created symlink /etc/systemd/system/multi-user.target.wants/winbind.service ?¨ /lib/systemd/system/winbind.service. Setting up samba (2:4.9.1+nmu-1~deb9) ... Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details. invoke-rc.d: initscript smbd, action "start" failed. ?? smbd.service - Samba SMB Daemon Loaded: loaded (/lib/systemd/system/smbd.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2018-09-24 13:23:24 CEST; 7ms ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 12594 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255) Main PID: 12594 (code=exited, status=255) Sep 24 13:23:24 debian9test systemd[1]: Starting Samba SMB Daemon... Sep 24 13:23:24 debian9test systemd[1]: smbd.service: Main process exited, code=exited, status=255/n/a Sep 24 13:23:24 debian9test systemd[1]: Failed to start Samba SMB Daemon. Sep 24 13:23:24 debian9test systemd[1]: smbd.service: Unit entered failed state. Sep 24 13:23:24 debian9test systemd[1]: smbd.service: Failed with result 'exit-code'. dpkg: error processing package samba (--configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for systemd (232-25+deb9u4) ... Errors were encountered while processing: samba E: Sub-process /usr/bin/dpkg returned an error code (1) Test: systemctl stop winbind apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up samba (2:4.9.1+nmu-1~deb9) ... Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service already masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service ?¨ /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service ?¨ /lib/systemd/system/smbd.service. Processing triggers for libc-bin (2.24-11+deb9u3) ... W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: samba:amd64 Results in ps fax : 15173 ? Ss 0:00 /usr/sbin/smbd --foreground --no-process-group 15175 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15176 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15178 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15211 ? Ss 0:00 /usr/sbin/nmbd --foreground --no-process-group The only error ( with the default smb.conf settings ) Logs show : [2018/09/24 14:06:01.620243, 0] ../source3/auth/auth_util.c:1382(make_new_session_info_guest) create_local_token failed: NT_STATUS_ACCESS_DENIED [2018/09/24 14:06:01.620284, 0] ../source3/smbd/server.c:2000(main) ERROR: failed to setup guest info. [2018/09/24 14:06:34.850213, 0] ../lib/util/become_daemon.c:138(daemon_ready) daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections systemctl start winbind ps fax 15173 ? Ss 0:00 /usr/sbin/smbd --foreground --no-process-group 15175 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15176 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15178 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 15211 ? Ss 0:00 /usr/sbin/nmbd --foreground --no-process-group 15289 ? Ss 0:00 /usr/sbin/winbindd --foreground --no-process-group 15291 ? S 0:00 \_ winbindd: domain child [DEBIAN9TEST] Or what also works is removing winbind. apt-get remove winbind Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: winbind 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 1,903 kB disk space will be freed. Do you want to continue? [Y/n] (Reading database ... 36955 files and directories currently installed.) Removing winbind (2:4.9.1+nmu-1~deb9) ... Processing triggers for libc-bin (2.24-11+deb9u3) ... Processing triggers for man-db (2.7.6.1-2) ... root@debian9test:/var# apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ps fax show 12709 ? Ss 0:00 /usr/sbin/smbd --foreground --no-process-group 12711 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 12712 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 12714 ? S 0:00 \_ /usr/sbin/smbd --foreground --no-process-group 12747 ? Ss 0:00 /usr/sbin/nmbd --foreground --no-process-group