无法启动 Samba NMB Daemon 和其他错误

无法启动 Samba NMB Daemon 和其他错误

我正在尝试使用 Samba 设置 Ubuntu 活动目录域控制器。我安装了 Samba,并使用 samba-tool 对其进行了配置。

在系统启动过程中,我收到 3 个错误:

[FAILED] Failed to start Samba NMB Daemon
See 'systemctl status nmbd.service' for details
[FAILED] Failed to start Samba Winbind Daemon.
See 'systemctl status winbind.service' for details.
[FAILED] Failed to start Samba SMB Daemon.
See 'systemctl status smbd.service' for details.

当我运行时samba -i,我收到一条错误消息setproctitle not initialized,指出Failed to listen on 0.0.0.0:53 - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED

我的 smb.conf 包含:

[global]
    dns forwarder = 127.0.0.53
    netbios name = EXAMPLESERV
    realm = EXAMPLE.LOCAL
    server role = active directory domain controller
    workgroup = EXAMPLE
[netlogon]
    path = /var/lib/samba/sysvol/example.local/scripts
    read only = No
[sysvol]
    path = /var/lib/samba/sysvol
    read only = No

目前它位于虚拟机中。我花了几个小时尝试修复此问题。有什么建议可以让它正常工作吗?

编辑: 的输出systemctl status nmbd.service为:

nmbd.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-07-06 17:19:41 UTC; 23min ago
 Docs: man:nmbd(8)
       man:samba(7)
       man:smb.conf(5)
Process: 881 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 881 (code=exited, status=1/FAILURE)

Jul 06 17:19:36 exampleserv systemd[1]: Starting Samba NMB Daemon...
Jul 06 17:19:40 exampleserv nmbd[881]: [2018/07/06 17:19:40.885641,  0] ../source3/nmbd/nmbd.c:923(main)
Jul 06 17:19:40 exampleserv nmbd[881]:   server role = 'active directory domain controller' not compatible with running nmbd standalone.
Jul 06 17:19:40 exampleserv nmbd[881]:   You should start 'samba' instead, and it will control starting the internal nbt server
Jul 06 17:19:41 exampleserv systemd[1]: nmbd.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 17:19:41 exampleserv systemd[1]: nmbd.service: Failed with result 'exit-code'.
Jul 06 17:19:41 exampleserv systemd[1]: Failed to start Samba NMB Daemon.

的输出systemctl status winbind.service为:

winbind.service - Samba Winbind Daemon
Loaded: loaded (/lib/systemd/system/winbind.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-07-06 17:19:41 UTC; 24min ago
 Docs: man:winbindd(8)
       man:samba(7)
       man:smb.conf(5)
Process: 1083 ExecStart=/usr/sbin/winbindd --foreground --no-process-group $WINBINDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1083 (code=exited, status=1/FAILURE)

Jul 06 17:19:41 exampleserv systemd[1]: Starting Samba Winbind Daemon...
Jul 06 17:19:41 exampleserv systemd[1]: winbind.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 17:19:41 exampleserv systemd[1]: winbind.service: Failed with result 'exit-code'.
Jul 06 17:19:41 exampleserv systemd[1]: Failed to start Samba Winbind Daemon.

的输出systemctl status smbd.service为:

smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2018-07-06 17:19:41 UTC; 25min ago
 Docs: man:smbd(8)
       man:samba(7)
       man:smb.conf(5)
Process: 1108 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1108 (code=exited, status=1/FAILURE)

Jul 06 17:19:41 exampleserv systemd[1]: Starting Samba SMB Daemon...
Jul 06 17:19:41 exampleserv smbd[1108]: [2018/07/06 17:19:41.581914,  0] ../source3/smbd/server.c:1815(main)
Jul 06 17:19:41 exampleserv smbd[1108]:   server role = 'active directory domain controller' not compatible with running smbd standalone.
Jul 06 17:19:41 exampleserv smbd[1108]:   You should start 'samba' instead, and it will control starting smbd if required
Jul 06 17:19:41 exampleserv systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 17:19:41 exampleserv systemd[1]: smbd.service: Failed with result 'exit-code'.
Jul 06 17:19:41 exampleserv systemd[1]: Failed to start Samba SMB Daemon.

相关内容