Samba는 우분투 서버 14.04에서 잘 실행됩니다. 16.10으로 업그레이드한 후에는 더 이상 시작되지 않습니다. 또한 새로운 16.10 가상 머신에 Samba를 설치하려고 시도했지만 작동하지 않았습니다.
서비스 오류 메시지는 다음과 같습니다.
root@srvvm:~# systemctl restart smbd
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
root@srvvm:~# systemctl status smbd
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-01-30 17:27:42 CET; 2s ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 3075 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 3075 (code=exited, status=1/FAILURE)
Jan 30 17:27:42 srvvm systemd[1]: Starting Samba SMB Daemon...
Jan 30 17:27:42 srvvm smbd[3075]: [2017/01/30 17:27:42.769054, 0] ../source3/smbd/server.c:1441(main)
Jan 30 17:27:42 srvvm smbd[3075]: server role = 'active directory domain controller' not compatible with running smbd standalone.
Jan 30 17:27:42 srvvm smbd[3075]: You should start 'samba' instead, and it will control starting smbd if required
Jan 30 17:27:42 srvvm systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 17:27:42 srvvm systemd[1]: Failed to start Samba SMB Daemon.
Jan 30 17:27:42 srvvm systemd[1]: smbd.service: Unit entered failed state.
Jan 30 17:27:42 srvvm systemd[1]: smbd.service: Failed with result 'exit-code'.
답변1
이 문제는 17.04에도 여전히 존재하는 것 같습니다(적어도 저에게는).
이것은 나에게 효과적입니다.
sudo systemctl disable nmbd
sudo systemctl disable smbd
sudo systemctl unmask samba-ad-dc
sudo systemctl enable samba-ad-dc