Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Samba nmbd en winbindd starten niet  (gelezen 2613 keer)

Samba nmbd en winbindd starten niet
« Gepost op: 2006/11/06, 22:31:52 »
Beste lezer,

Als ik via >Lokaties>Netwerkserver>het Windows netwerk pictogram aanklik krijg ik het pictogram van een bestand zien met de naam van mijn netwerkgroep  en de volgende mededeling:

Kan "smb:///nwd" niet weergeven.  De locatie is geen map.

Als ik vervolgens de mededeling wegklik en een paar keer klik op het tekstpictogram zie ik vervolgens een netwerkpictogram  en vervolgens weer twee tekst pictogrammen met de namen van de andere pc's op het netwerk.
Vervolgens de zelfde procudure als boven en kan ik in de mappen komen van de pc's
Ik dacht dit is niet goed en kijk in SWAT wat er aan de hand is.
De nmbd en winbind services (of heet dit anders?) waren niet gestart, na restart button ingedrukt te hebben kwam de medeling dat nmbd en winbindd niet gestart waren.
Vervolgens heb ik in een terminal geprobeerd op te starten, helaas met het zelfde effect, zijn nmbd en winbindd eigenlijk wel nodig?
Weet iemand wat het probleem kan zijn?

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Samba nmbd en winbindd starten niet
« Reactie #1 Gepost op: 2006/11/07, 08:05:33 »
Staat er een foutmelding in /var/log/syslog?

Je kunt ook proberen de daemons in debug modus te starten:
nmbd -d 2
winbindd -d 2

Groeten,
Vorik
http://www.gerapeldoorn.nl - Freelance Unix/Linux specialist
http://botix.sourceforge.net - Open-source robotica software

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
Samba nmbd en winbindd starten niet
« Reactie #2 Gepost op: 2006/11/07, 08:07:13 »
nmbd is zeker nodig winbindd; hangt af van uw situatie. Kan je eens de laatste lijnen posten uit de (meest recente) logfiles onder /var/log/samba. Daar staan normaal een aantal bestanden met extensie .log.

Offline Dave

  • Lid
Samba nmbd en winbindd starten niet
« Reactie #3 Gepost op: 2006/11/07, 17:55:23 »
uik heb niets extra's geinstalleerd als dat wat ubuntu zelf deed als samba.
zie wel eens dat de andere computers in het netwerk geen icoon hebben.
Dan even verversen (herladen) en dan zijn ze wel aanklikbaar.

misschien dat dat nog beter in te stellen is maar twerkt in ieder geval.

Samba nmbd en winbindd starten niet
« Reactie #4 Gepost op: 2006/11/07, 18:19:15 »
Ik heb de commandos nmbd -d 2 en winbindd -d 2 uitgevoerd met dit resultaat:

root@Puinbak:/home/gijs# nmbd -d 2
root@Puinbak:/home/gijs# winbindd -d 2
bash: winbindd: command not found
root@Puinbak:/home/gijs#

Hierbij mijn nmbd log:

[2006/11/07 18:00:25, 0] nmbd/nmbd.c:main(727)
  Netbios nameserver version 3.0.22 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2006/11/07 18:00:25, 0] nmbd/nmbd.c:main(746)
  standard input is not a socket, assuming -D option
[2006/11/07 18:00:25, 2] nmbd/nmbd.c:main(751)
  Becoming a daemon.
[2006/11/07 18:00:25, 2] lib/tallocmsg.c:register_msg_pool_usage(61)
  Registered MSG_REQ_POOL_USAGE
[2006/11/07 18:00:25, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2006/11/07 18:00:25, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.0.4 bcast=192.168.0.255 nmask=255.255.255.0
[2006/11/07 18:00:25, 0] lib/util_sock.c:open_socket_in(826)
  bind failed on port 137 socket_addr = 192.168.0.4.
  Error = Cannot assign requested address
[2006/11/07 18:00:25, 0] nmbd/nmbd_subnetdb.c:make_subnet(127)
nmbd_subnetdb:make_subnet()
  Failed to open nmb socket on interface 192.168.0.4 for port 137.  Error was Cannot assign requested address
[2006/11/07 18:00:25, 0] nmbd/nmbd.c:main(801)
  ERROR: Failed when creating subnet lists. Exiting.

En nog van mijn hostnaam 127.0.1.1

[2006/11/07 18:01:57, 1] smbd/service.c:make_connection_snum(693)
  127.0.1.1 (127.0.1.1) connect to service Bestandssysteem initially as user nobody (uid=65534, gid=65534) (pid 5925)

Is dit voldoende of is er nog iets anders nodig?

Ik heb ook op de knop verversen gedrukt dan verschijnen er inderdaad pictogrammen, alleen dat moet ik elke keer doen en dat lijkt me toch niet de bedoeling. Onder SuSE en Dapper had ik er geen problemen mee.

Is het misschien verstandiger om SAMBA op nieuw te installeren?, of kan ik nog iets veranderen?

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
Samba nmbd en winbindd starten niet
« Reactie #5 Gepost op: 2006/11/08, 08:07:39 »
Cool. Uw nmbd  kan niet starten omdat de poort waarop ie wil luisteren reeds gebruikt wordt (zie ook: http://lists.samba.org/archive/samba/2002-April/041528.html). Kan je eens een  netstat -apn | grep 137 doorsturen. (zoals ook in de link vermeld).

Samba nmbd en winbindd starten niet
« Reactie #6 Gepost op: 2006/11/08, 13:35:55 »
Beste kennywest,

Hierbij netstat:

root@Puinbak:/home/gijs# netstat -apn | grep 137
tcp6       0      0 :::80                   :::*                    LISTEN     5137/apache2        
unix  2      [ ACC ]     STREAM     LISTENING     13712    5339/gnome-volume-m /tmp/orbit-gijs/linc-14d8-0-6f4372f85c57e
unix  2      [ ACC ]     STREAM     LISTENING     13758    5349/gnome-vfs-daem /tmp/orbit-gijs/linc-14e5-0-23d9b38ec142
unix  2      [ ACC ]     STREAM     LISTENING     13771    5345/update-notifie /tmp/orbit-gijs/linc-14e1-0-6f4372f782bc5
unix  2      [ ACC ]     STREAM     LISTENING     13797    5364/gnome-power-ma /tmp/orbit-gijs/linc-14ed-0-aea4b77e0f5
unix  3      [ ]         STREAM     CONNECTED     13799    5276/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     13796    5276/gconfd-2       /tmp/orbit-gijs/linc-149c-0-47b30ec7be082
unix  3      [ ]         STREAM     CONNECTED     13795    5364/gnome-power-ma
unix  3      [ ]         STREAM     CONNECTED     13793    5221/gnome-session  /tmp/.ICE-unix/5221
unix  3      [ ]         STREAM     CONNECTED     13792    5364/gnome-power-ma
unix  3      [ ]         STREAM     CONNECTED     13788    4294/X              /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     13787    5364/gnome-power-ma
unix  3      [ ]         STREAM     CONNECTED     13780    4424/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13779    5345/update-notifie
unix  3      [ ]         STREAM     CONNECTED     13776    5274/dbus-daemon    @/tmp/dbus-THskaeWR62
unix  3      [ ]         STREAM     CONNECTED     13775    5345/update-notifie
unix  3      [ ]         STREAM     CONNECTED     13774    5345/update-notifie /tmp/orbit-gijs/linc-14e1-0-6f4372f782bc5
unix  3      [ ]         STREAM     CONNECTED     13773    5276/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     13770    5276/gconfd-2       /tmp/orbit-gijs/linc-149c-0-47b30ec7be082
unix  3      [ ]         STREAM     CONNECTED     13769    5345/update-notifie
unix  3      [ ]         STREAM     CONNECTED     13763    4424/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13762    5349/gnome-vfs-daem
unix  3      [ ]         STREAM     CONNECTED     13761    5349/gnome-vfs-daem /tmp/orbit-gijs/linc-14e5-0-23d9b38ec142
unix  3      [ ]         STREAM     CONNECTED     13760    5276/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     13757    5276/gconfd-2       /tmp/orbit-gijs/linc-149c-0-47b30ec7be082
unix  3      [ ]         STREAM     CONNECTED     13756    5349/gnome-vfs-daem
unix  3      [ ]         STREAM     CONNECTED     13753    5274/dbus-daemon    @/tmp/dbus-THskaeWR62
unix  3      [ ]         STREAM     CONNECTED     13752    5349/gnome-vfs-daem
unix  3      [ ]         STREAM     CONNECTED     13767    5221/gnome-session  /tmp/.ICE-unix/5221
unix  3      [ ]         STREAM     CONNECTED     13744    5345/update-notifie
unix  3      [ ]         STREAM     CONNECTED     13740    4294/X              /tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     13739    5345/update-notifie
unix  3      [ ]         STREAM     CONNECTED     13730    5274/dbus-daemon    @/tmp/dbus-THskaeWR62
unix  3      [ ]         STREAM     CONNECTED     13729    5334/nautilus      
unix  3      [ ]         STREAM     CONNECTED     13720    5274/dbus-daemon    @/tmp/dbus-THskaeWR62
unix  3      [ ]         STREAM     CONNECTED     13719    5339/gnome-volume-m
unix  3      [ ]         STREAM     CONNECTED     13717    4424/dbus-daemon    /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     13716    5339/gnome-volume-m
unix  3      [ ]         STREAM     CONNECTED     13715    5339/gnome-volume-m /tmp/orbit-gijs/linc-14d8-0-6f4372f85c57e
unix  3      [ ]         STREAM     CONNECTED     13714    5276/gconfd-2      
unix  3      [ ]         STREAM     CONNECTED     13711    5276/gconfd-2       /tmp/orbit-gijs/linc-149c-0-47b30ec7be082
unix  3      [ ]         STREAM     CONNECTED     13710    5339/gnome-volume-m
unix  3      [ ]         STREAM     CONNECTED     13708    5221/gnome-session  /tmp/.ICE-unix/5221
unix  3      [ ]         STREAM     CONNECTED     13707    5339/gnome-volume-m
unix  3      [ ]         STREAM     CONNECTED     13137    5274/dbus-daemon    
root@Puinbak:/home/gijs#

Heb je hier iets aan?

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
Samba nmbd en winbindd starten niet
« Reactie #7 Gepost op: 2006/11/08, 13:53:30 »
Weet je zeker dat nmbd niet draait. Wat zegt ps -ef | grep nmbd

Samba nmbd en winbindd starten niet
« Reactie #8 Gepost op: 2006/11/08, 18:15:24 »
Beste kennywest,

Dit zegt ps -ef | grep nmbd:

root@Puinbak:/home/gijs# ps -ef | grep nmbd
root      9404  9389  0 18:12 pts/0    00:00:00 grep nmbd

Mij zegt het niets, jou wel?

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
Samba nmbd en winbindd starten niet
« Reactie #9 Gepost op: 2006/11/09, 08:12:02 »
U heeft een moeilijk probleem ;)
Kan je eens de inhoud van /etc/inetd.conf posten?

Ik heb ook nog iets anders gevonden via google:

The default smb.conf file worked and seemed stable.  After a day I
started to change one area at a time and this is when I found my problem
I think.  In smb.conf there is a line which says,

"Please uncomment the following entry and replace the ip number and
netmask with the correct numbers for your ethernet interface......"

If I do this, then nmbd -D stops working. Every time

This is what I have found and I hope it helps someone.  Drop me a note
if you are reading this and have the same problem as my original post
and this helps you.

Dus je moet eens kijken in smb.conf of het hier eens posten.

Samba nmbd en winbindd starten niet
« Reactie #10 Gepost op: 2006/11/09, 19:03:35 »
Beste Kennywest,

Hierbij mijn inetd.conf:

## netbios-ssn   stream   tcp   nowait   root   /usr/sbin/tcpd   /usr/sbin/smbd            stream   tcp   nowait.400   root   /usr/sbin/ smbd
swat        stream    tcp    nowait.400    root    /usr/sbin/tcpd    /usr/sbin/swat swat

En mijn smb.conf:

# Samba config file created using SWAT
# from 127.0.1.1 (127.0.1.1)
# Date: 2006/11/06 21:35:08

[global]
   workgroup = NWD
   interfaces = 192.168.0.4/255.255.255.0
   obey pam restrictions = Yes
   passdb backend = tdbsam
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
   syslog = 0
   log file = /var/log/samba/log.%m
   max log size = 1000
   dns proxy = No
   panic action = /usr/share/samba/panic-action %d
   invalid users = root

[printers]
   comment = All Printers
   path = /tmp
   create mask = 0700
   printable = Yes
   browseable = No

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers

[WindowsDUST]
   path = /media/hda7
   browseable = No
   available = No

[WindowsDarkness]
   path = /media/hda6
   browseable = No
   available = No

[WindowsShadow]
   path = /media/hda5
   browseable = No
   available = No

[Windowsc]
   path = /media/hda1
   browseable = No
   available = No

[Bestandssysteem]
   path = /
   guest ok = Yes

[homes]
   valid users = %S
   read only = No
   browseable = No

De regel :
"Please uncomment the following entry and replace the ip number and
netmask with the correct numbers for your ethernet interface......"

zie ik niet, waarschijnlijk omdat de orginele smb.conf vervangen is door SWAT, of zie ik iets over het hoofd?

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.

Offline kennywest

  • Lid
    • http://kennywest.blogspot.com
Samba nmbd en winbindd starten niet
« Reactie #11 Gepost op: 2006/11/10, 08:40:42 »
Zet eens de lijn met "interfaces = 192.168.0.4/255.255.255.0" in commentaar.

Samba nmbd en winbindd starten niet
« Reactie #12 Gepost op: 2006/11/10, 20:08:25 »
Beste kennywest,

# is inderdaad de oplossing, mijn nmbd server draait nu.

@Dave, het probleem met de pictogrammen is er nog steeds, het lijkt er inderdaad op dat op verversen drukken de enigste oplossing is. Misschien een bug in Edgy?

Bedankt voor jullie hulp.:cool:

Met vriendelijke groet,

Gijs
In der Beschränkung zeigt sich der Meister.