PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : smbd will nicht starten



TiTo
28.05.03, 11:03
Servus,

ich wollte mir Samba v. 2.2.8a selber compilieren. Nach der Anleitung von O'Reilly (http://www.oreilly.de/catalog/samba/chapter/book/ch02_01.html)

Mein System ist ein Debian/Woody mit 2.4.20 Kernel. Es lief auch eigentlich alles glatt, ich bekam keine Fehlermeldungen. Swat läuft und die smb.conf ist auch konfiguriert. Nur tauchen die Freigaben nicht in der Netzwerkumgebung in MS auf. Security in der smb.conf steht auf User und die Benutzer wurden per smbpasswd -a angelegt. Als ich mir die beiden Samba Daemons anschauen wollte, sah ich, dass nur der Netbios Dienst, nmbd läuft. Der smbd Daemon läuft nicht. Wenn er aber als eigentständiger Daemon laufen muss, ist er ja auch immer verfügbar .. nicht nur, wenn er eine Anforderung eines Clients erhält.
Leider ergibt ein smbd –D keine Fehlermeldung, er meldet einfach nichts. Ich hab noch mal die beiden logs vom smbd und nmbd mit drangehängt, vielleicht kann mir ja jemand einen Tipp geben, woran es liegt.

Ach ja, hier noch der Ort, wo alle Dateien von Samba liegen:

Hauptpfad: /usr/local/samba
Binaries: /usr/local/samba/bin
Config Files wie z.b. smb.conf: /usr/local/samba/lib
Passwortfile: /usr/local/samba/private
Swat: /usr/local/samba/swat

Gruß TiTo

nmbd.log:

[2003/05/26 11:36:59, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 11:37:04, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 24085 received with no matching record.
[2003/05/26 11:37:04, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 24086 received with no matching record.
[2003/05/26 11:39:47, 0] nmbd/nmbd.c:terminate(59)
Got SIGTERM: going down...
[2003/05/26 11:40:41, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 11:43:15, 0] nmbd/nmbd.c:main(784)
Incorrect program usage - is the command line correct?
[2003/05/26 11:43:22, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 11:43:22, 0] lib/pidfile.c:pidfile_create(86)
ERROR: nmbd is already running. File /usr/local/samba/var/locks/nmbd.pid exists and process id 300 is running.
[2003/05/26 11:50:38, 0] nmbd/nmbd.c:terminate(59)
Got SIGTERM: going down...
[2003/05/26 11:52:28, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 11:52:32, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 24968 received with no matching record.
[2003/05/26 11:52:32, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(235)
find_response_record: response packet id 24969 received with no matching record.
[2003/05/26 13:32:52, 0] nmbd/nmbd.c:terminate(59)
Got SIGTERM: going down...
[2003/05/26 13:33:42, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 13:35:27, 0] nmbd/nmbd.c:terminate(59)
Got SIGTERM: going down...
[2003/05/26 13:36:11, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 13:43:45, 0] nmbd/nmbd.c:terminate(59)
Got SIGTERM: going down...
[2003/05/26 13:43:45, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 13:43:45, 0] nmbd/nmbd.c:main(795)
Netbios nameserver version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2003/05/26 13:43:45, 0] lib/pidfile.c:pidfile_create(86)
ERROR: nmbd is already running. File /usr/local/samba/var/locks/nmbd.pid exists and process id 463 is running.

------------------------------------------------------------------------------------------------------------

smbd.log:

[2003/05/26 11:43:03, 0] lib/util_sock.c:open_socket_in(804)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use
[2003/05/26 11:48:34, 0] smbd/server.c:main(791)
smbd version 2.2.8a started.
Copyright Andrew Tridgell and the Samba Team 1992-2002

------------------------------------------------------------------------------------------------------------

Evtl. ist auch die netstat ausgabe hilfreich:

Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:printer *:* LISTEN
tcp 0 0 *:swat *:* LISTEN
tcp 0 0 *:time *:* LISTEN
tcp 0 0 *:discard *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:daytime *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
udp 0 0 192.168.0.20:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 *:discard *:*
udp 0 0 192.168.0.2:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
Aktive Sockets in der UNIX Domäne (Server und stehende Verbindungen)
Proto RefZäh Flaggen Typ Zustand I-Node Pfad
unix 7 [ ] DGRAM 159 /dev/log
unix 2 [ ACC ] STREAM HÖRT 325 /dev/printer
unix 2 [ ACC ] STREAM HÖRT 336 /tmp/.font-unix/fs7100
unix 2 [ ] DGRAM 394
unix 2 [ ] DGRAM 290
unix 2 [ ] DGRAM 221
unix 2 [ ] DGRAM 219
unix 2 [ ] DGRAM 196


Gruß TiTo