Samba has become quite unstable last few years and I use it less and less.
However I need it again for some windows clients.
I did a dpkg --purge samba to make sure all old config files are removed.
However upon installation of samba: the daemon refuses to start.
I tried all advice online I could find, also permissions on private folders, but daemon dies at install, or started from /etc/init.d or from service call.
Anyone has an idea.
Here is the output from the install and the error encountered when daemon started by installer.
I dont know why it now want to do active directory and such nonsense I dont need. There is no such package samba-dc or samba-ad-dc available for Debian Stretch so how do I get around this mess ?
$] apt install samba
Reading package lists… Done
Building dependency tree
Reading state information… Done
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools winbind
The following NEW packages will be installed:
samba
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/934 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Selecting previously unselected package samba.
(Reading database … 651822 files and directories currently installed.)
Preparing to unpack …/samba_2%3a4.5.16+dfsg-1_amd64.deb …
Unpacking samba (2:4.5.16+dfsg-1) …
Processing triggers for ufw (0.35-4) …
Processing triggers for libc-bin (2.24-11+deb9u4) …
Processing triggers for systemd (232-25+deb9u9) …
Processing triggers for man-db (2.7.6.1-2) …
Setting up samba (2:4.5.16+dfsg-1) …
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 samba-ad-dc-service.
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.
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; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2019-03-10 23:35:19 EDT; 11ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 2855 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 2855 (code=exited, status=1/FAILURE)
Mar 10 23:35:18 Tango systemd[1]: Starting Samba SMB Daemon…
Mar 10 23:35:19 Tango systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Mar 10 23:35:19 Tango systemd[1]: Failed to start Samba SMB Daemon.
Mar 10 23:35:19 Tango systemd[1]: smbd.service: Unit entered failed state.
Mar 10 23:35:19 Tango 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+deb9u4) …
Processing triggers for systemd (232-25+deb9u9) …
Processing triggers for ufw (0.35-4) …
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)