OS: Debian 12 (bookworm)
When I try to start samba, systemctl start samba
runs with no output, but systemctl status samba
outputs:
* samba-ad-dc.service - Samba AD Daemon
Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; preset: enabled)
Active: inactive (dead) (Result: exec-condition) since Wed 2023-08-30 19:35:52 CEST; 10s ago
Condition: start condition failed at Wed 2023-08-30 19:35:52 CEST; 10s ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Process: 1414 ExecCondition=/usr/share/samba/is-configured samba (code=exited, status=1/FAILURE)
CPU: 26ms
Aug 30 19:35:52 debian-srv systemd[1]: Starting samba-ad-dc.service - Samba AD Daemon...
Aug 30 19:35:52 debian-srv systemd[1]: samba-ad-dc.service: Skipped due to 'exec-condition'.
Aug 30 19:35:52 debian-srv systemd[1]: Condition check resulted in samba-ad-dc.service - Samba AD Daemon being skipped.
testparm doesn't return any errors in the smb.conf file.
log.smbd:
[2023/08/30 19:31:50.587835, 0] ../../source3/smbd/server.c:1741(main)
smbd version 4.17.10-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2022
log.nmbd:
[2023/08/30 19:31:49.882020, 0] ../../source3/nmbd/nmbd.c:901(main)
nmbd version 4.17.10-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2022
[2023/08/30 19:32:12.939108, 0] ../../source3/nmbd/nmbd_become_lmb.c:398(become_local_master_stage2)
*****
Samba name server DEBIAN-SRV is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.110
*****
I tried reinstalling the system, but the problem still persists.