Ubuntu 16.10 Samba will nicht starten

SlipKn0T

Commander
Registriert
Dez. 2008
Beiträge
2.249
Hi,

ich habe in einer vm für Testzwecke ein Ubuntu 16.10 installiert, um mich mal ein wenig mit Samba vertraut zu machen.

Ich habe mich fast strickt an dieses Youtube-Video gehalten.
Die Ausnahme war, dass das Paket
nicht mehr verfügbar war. Nach kurzer suche habe ich dann
dieses verwendet.

Die Installation habe ich soweit nach dem Video durchführen können.
Ich bin nun bei der 19. Min, wo der Test mit smbclient durchgeführt wird.
Code:
Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
Dies kommt dabei raus.

dann habe ich herausgefunden, dass der Dienst gar nicht aktiv ist. Ich bekomme ihn durch den nmbd auch gar nicht gestartet.

Folgendes gibt die Journalctl -r aus:
Code:
Feb 15 02:07:59 dc02 sudo[3235]: pam_unix(sudo:session): session closed for user root
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Failed with result 'exit-code'.
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Unit entered failed state.
Feb 15 02:07:59 dc02 systemd[1]: Failed to start Samba SMB Daemon.
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Feb 15 02:07:59 dc02 smbd[3238]:   You should start 'samba' instead, and it will control starting smbd if required
Feb 15 02:07:59 dc02 smbd[3238]:   server role = 'active directory domain controller' not compatible with running smbd standalone.
Feb 15 02:07:59 dc02 smbd[3238]: [2017/02/15 02:07:59.156629,  0] ../source3/smbd/server.c:1441(main)
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Failed with result 'exit-code'.
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Unit entered failed state.
Feb 15 02:07:59 dc02 systemd[1]: Failed to start Samba NMB Daemon.
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Main process exited, code=exited, status=1/FAILURE
Feb 15 02:07:59 dc02 nmbd[3240]:   You should start 'samba' instead, and it will control starting the internal nbt server
Feb 15 02:07:59 dc02 nmbd[3240]:   server role = 'active directory domain controller' not compatible with running nmbd standalone.
Feb 15 02:07:59 dc02 nmbd[3240]: [2017/02/15 02:07:59.146595,  0] ../source3/nmbd/nmbd.c:923(main)
Feb 15 02:07:59 dc02 systemd[1]: Starting Samba NMB Daemon...
Feb 15 02:07:59 dc02 systemd[1]: Starting Samba SMB Daemon...
Feb 15 02:07:59 dc02 sudo[3235]: pam_unix(sudo:session): session opened for user root by (uid=0)
Feb 15 02:07:59 dc02 sudo[3235]:     andy : TTY=pts/6 ; PWD=/home/andy ; USER=root ; COMMAND=/bin/systemctl start smbd.service nmbd.service

bzw. Journalctl -xe
Code:
-- Unit nmbd.service has begun starting up.
Feb 15 02:07:59 dc02 nmbd[3240]: [2017/02/15 02:07:59.146595,  0] ../source3/nmbd/nmbd.c:923(main)
Feb 15 02:07:59 dc02 nmbd[3240]:   server role = 'active directory domain controller' not compatible with running nmbd standalone.
Feb 15 02:07:59 dc02 nmbd[3240]:   You should start 'samba' instead, and it will control starting the internal nbt server
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Main process exited, code=exited, status=1/FAILURE
Feb 15 02:07:59 dc02 systemd[1]: Failed to start Samba NMB Daemon.
-- Subject: Unit nmbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit nmbd.service has failed.
-- 
-- The result is failed.
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Unit entered failed state.
Feb 15 02:07:59 dc02 systemd[1]: nmbd.service: Failed with result 'exit-code'.
Feb 15 02:07:59 dc02 smbd[3238]: [2017/02/15 02:07:59.156629,  0] ../source3/smbd/server.c:1441(main)
Feb 15 02:07:59 dc02 smbd[3238]:   server role = 'active directory domain controller' not compatible with running smbd standalone.
Feb 15 02:07:59 dc02 smbd[3238]:   You should start 'samba' instead, and it will control starting smbd if required
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Feb 15 02:07:59 dc02 systemd[1]: Failed to start Samba SMB Daemon.
-- Subject: Unit smbd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- Unit smbd.service has failed.
-- 
-- The result is failed.
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Unit entered failed state.
Feb 15 02:07:59 dc02 systemd[1]: smbd.service: Failed with result 'exit-code'.
Feb 15 02:07:59 dc02 sudo[3235]: pam_unix(sudo:session): session closed for user root
Feb 15 02:08:03 dc02 pkexec[3353]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)

ich weiß nicht mehr weiter.. das System ist frisch drauf und hab sonst nichts damit gemacht..

Einzig im IP bereich sind meine größeren Unterschiede, ist das mein Fehler?

Code:
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto ens33
iface ens33 inet static
	address 10.16.1.202
	netmask 255.255.255.0
	gateway 10.16.1.254
	dns-nameservers 10.16.1.202 8.8.8.8
	dns-search testdomain.local
 
Hast du die Config gemacht vom Samba Server? Wie schaut diese aus? Dort Fehler drin?
 
Hast du dir die Samba config angeschaut?

Hast du das schon ausprobiert? Samba direkt zu starten?
"Feb 15 02:07:59 dc02 nmbd[3240]: You should start 'samba' instead, and it will control starting the internal nbt server"
 
Die Config habe ich mittels samba-tool gemacht.
Code:
sudo samba-tool domain provision --use-rfc2307 --interactive


Code:
sudo service samba start
Failed to start samba.service: Unit samba.service is masked.

Mit systemctl unmask samba.service bekomme ich das auch nicht wieder weg.

Folgende ausgabe der smb.conf
Code:
# Global parameters
[global]
	netbios name = DC02
	realm = TESTDOMAIN.LOCAL
	workgroup = TESTDOMAIN
	dns forwarder = 8.8.8.8
	server role = active directory domain controller
	idmap_ldb:use rfc2307 = yes

[netlogon]
	path = /var/lib/samba/sysvol/testdomain.local/scripts
	read only = No

[sysvol]
	path = /var/lib/samba/sysvol
	read only = No
 
Zurück
Oben