Gaskoyn
Junior Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Здравствуйте. Такая проблема: После обновления до Ubuntu 17.04 перестала запускаться samba. При переустановке samba появляется сообщение: Настраивается пакет samba (2:4.5.8+dfsg-0ubuntu0.17.04.1) … 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 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 Mon 2017-05-01 19:57:02 EEST; 14ms ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Process: 8599 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE) Main PID: 8599 (code=exited, status=1/FAILURE) Май 01 19:57:02 lockerNB systemd[1]: Starting Samba SMB Daemon... Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE Май 01 19:57:02 lockerNB systemd[1]: Failed to start Samba SMB Daemon. Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Unit entered failed state. Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Failed with result 'exit-code'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: ошибка при обработке пакета samba (--configure): подпроцесс установлен сценарий post-installation возвратил код ошибки 1 Обрабатываются триггеры для libc-bin (2.24-9ubuntu2) … При обработке следующих пакетов произошли ошибки: samba E: Sub-process /usr/bin/dpkg returned an error code (1) Каталоги /etc/samba и /usr/etc/samba отсутствуют. При попытке запустить: sudo /etc/init.d/smbd start [....] Starting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details. failed! systemctl status smbd.service Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2017-05-01 19:57:02 EEST; 13h ago Docs: man:smbd(8) man:samba(7) man:smb.conf(5) Main PID: 8599 (code=exited, status=1/FAILURE) Май 01 19:57:02 lockerNB systemd[1]: Starting Samba SMB Daemon... Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE Май 01 19:57:02 lockerNB systemd[1]: Failed to start Samba SMB Daemon. Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Unit entered failed state. Май 01 19:57:02 lockerNB systemd[1]: smbd.service: Failed with result 'exit-code'. sudo cat /var/log/samba/log.samba [2017/04/30 10:39:02.157233, 0] ../source4/smbd/server.c:372(binary_smbd_main) samba version 4.5.8-Ubuntu started. Copyright Andrew Tridgell and the Samba Team 1992-2016 [2017/04/30 10:39:02.307013, 0] ../source4/smbd/server.c:466(binary_smbd_main) At this time the 'samba' binary should only be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote' You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks [2017/04/30 10:39:02.307227, 0] ../lib/util/become_daemon.c:111(exit_daemon) STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22 [2017/05/01 13:55:53.521948, 0] ../source4/smbd/server.c:372(binary_smbd_main) samba version 4.5.8-Ubuntu started. Copyright Andrew Tridgell and the Samba Team 1992-2016 [2017/05/01 13:55:54.194479, 0] ../source4/smbd/server.c:466(binary_smbd_main) At this time the 'samba' binary should only be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote' You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks [2017/05/01 13:55:54.194793, 0] ../lib/util/become_daemon.c:111(exit_daemon) STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22 [2017/05/01 19:51:13.717453, 0] ../source4/smbd/server.c:372(binary_smbd_main) samba version 4.5.8-Ubuntu started. Copyright Andrew Tridgell and the Samba Team 1992-2016 [2017/05/01 19:51:13.771015, 0] ../source4/smbd/server.c:466(binary_smbd_main) At this time the 'samba' binary should only be used for either: 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote' You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks [2017/05/01 19:51:13.771159, 0] ../lib/util/become_daemon.c:111(exit_daemon) STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22 Версия samba: samba version 4.5.8-Ubuntu Заранеее спасибо за помощь. |