[Samba] smbd running multiple times

Ben Hacker Jr strbenjr at yahoo.com
Sat Mar 9 06:57:13 GMT 2002


Dear "someone who can help",

  I am having a problem with SAMBA and SWAT (although 
I'm not sure SWAT is part of the problem...)  I get 
two instances of "smbd" when ever it is started on 
this system.  From SWAT I can only stop it ONE time.  
After that, each time I attempt to stop the SMBD 
daemon from SWAT it simply starts TWO more instances 
of the daemon (or something to that affect.)

  Below you can see the results of my trying to stop 
the "smbd" daemon multiple times from SWAT.  I don't 
know where to look for the cause.

  I start the Samba daemons by using the: 
/usr/local/etc/rc.d/samba.sh   file.  I do not use 
INETD at all.  I have had this problem since Samba
ver: 2.2.2_1.  

  Any help or suggestions will be greatly 
appreciated!!

-Ben


----- Just rebooted the File Server
      Note the items marked with an astrick "*" in the "ps
-ax" listing...

installer at apache$ 
installer at apache$ 
installer at apache$ uname -a

FreeBSD apache 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Mar  8
19:23:14 EST 2002     
installer at apache.site.com:/usr/src/sys/compile/APACHE02 
i386

installer at apache$ 
installer at apache$ /usr/local/sbin/smbd -V

Version 2.2.3a
 
installer at apache$ 
installer at apache$ ps -ax

  PID  TT  STAT      TIME COMMAND
    0  ??  DLs    0:00.00  (swapper)
    1  ??  ILs    0:00.01 /sbin/init --
    2  ??  DL     0:00.00  (pagedaemon)
    3  ??  DL     0:00.00  (vmdaemon)
    4  ??  DL     0:00.00  (bufdaemon)
    5  ??  DL     0:00.00  (vnlru)
    6  ??  DL     0:00.01  (syncer)
   69  ??  Ss     0:00.05 /usr/sbin/syslogd -a
192.168.7.1/24
   73  ??  Ss     0:00.02 ntpd -c /etc/ntp.conf -p
/var/run/ntpd.pid
   80  ??  Ss     0:00.00 /usr/sbin/cron
   82  ??  Is     0:00.14 /usr/sbin/sshd
   95  ??  Ss     0:00.28 moused -3 -p /dev/psm0 -t auto
* 101  ??  Is     0:00.00 /usr/local/sbin/smbd -D
  103  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D
  107  ??  Is     0:00.00 /usr/local/sbin/stunnel -d 901 -P
/var/run/ -p /usr/local/etc/swa
* 117  ??  I      0:00.01 /usr/local/sbin/smbd -D
  127  ??  S      0:00.93 /usr/X11R6/bin/X :0 (XF86_Mach64)
  137  ??  Is     0:00.00 /bin/sh -c xterm -ls
  138  ??  R      0:00.12 xterm -ls
  154  ??  Is     0:00.00 /bin/sh -c xterm -ls
  155  ??  I      0:00.03 xterm -ls
  139  p0  Ss     0:00.02 -sh (sh)
  172  p0  R+     0:00.00 ps -ax
  156  p1  Is+    0:00.01 -sh (sh)
  109  v0  Is+    0:00.00 /usr/libexec/getty Pc ttyv0
  110  v1  Is+    0:00.00 /usr/libexec/getty Pc ttyv1
  111  v2  Is+    0:00.01 /usr/libexec/getty Pc ttyv2
  112  v3  Is+    0:00.00 /usr/libexec/getty Pc ttyv3
  113  v4  Is+    0:00.00 /usr/libexec/getty Pc ttyv4
  114  v5  Is+    0:00.00 /usr/libexec/getty Pc ttyv5
  115  v6  Is     0:00.02 login -p startx
  118  v6  I      0:00.01 -sh (sh)
  125  v6  I+     0:00.00 /bin/sh /usr/X11R6/bin/startx
  126  v6  I+     0:00.01 xinit /home/installer/.xinitrc --
  130  v6  I      0:00.00 sh /home/installer/.xinitrc
  131  v6  I      0:00.03 bbrun
  132  v6  I      0:00.03 bbkeys -w -t
  133  v6  I      0:00.02 bbpager
  134  v6  S      0:00.10 blackbox
  116  v7  Is+    0:00.00 /usr/libexec/getty Pc ttyv7
installer at apache$ 

----- Now I bring up my Swat web page and go to the status
page...
*     On the "Server Status" page I click "Stop smbd"...  
Here is what I get...

installer at apache$ ps -ax | grep nmbd
  103  ??  Ss     0:00.03 /usr/local/sbin/nmbd -D
 4710  p0  S+     0:00.00 grep nmbd

      On the "Server Status" page I click "Stop nmbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd

-OK- so far...

      On the "Server Status" page I click "Start nmbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd
 4737  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D

      On the "Server Status" page I click "Start smbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd
 4737  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D
 4743  ??  Ss     0:00.00 /usr/local/sbin/smbd -D
*4744  ??  Z      0:00.00  (smbd)
*4745  ??  Z      0:00.00  (smbd)

*     On the "Server Status" page I click "Stop smbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd
 4737  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D
 4743  ??  Ss     0:00.00 /usr/local/sbin/smbd -D
*4744  ??  Z      0:00.00  (smbd)
*4745  ??  Z      0:00.00  (smbd)
*4791  ??  Z      0:00.00  (smbd)
*4792  ??  Z      0:00.00  (smbd)

*     On the "Server Status" page I click "Stop smbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd
 4737  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D
 4743  ??  Ss     0:00.01 /usr/local/sbin/smbd -D
*4744  ??  Z      0:00.00  (smbd)
*4745  ??  Z      0:00.00  (smbd)
*4791  ??  Z      0:00.00  (smbd)
*4792  ??  Z      0:00.00  (smbd)
*4816  ??  Z      0:00.00  (smbd)
*4817  ??  Z      0:00.00  (smbd)

*     On the "Server Status" page I click "Stop smbd"...  
Here is what I get...
installer at apache$ ps -ax | grep mbd
 4737  ??  Ss     0:00.01 /usr/local/sbin/nmbd -D
 4743  ??  Ss     0:00.01 /usr/local/sbin/smbd -D
*4744  ??  Z      0:00.00  (smbd)
*4745  ??  Z      0:00.00  (smbd)
*4791  ??  Z      0:00.00  (smbd)
*4792  ??  Z      0:00.00  (smbd)
*4816  ??  Z      0:00.00  (smbd)
*4817  ??  Z      0:00.00  (smbd)
*4821  ??  Z      0:00.00  (smbd)
*4822  ??  Z      0:00.00  (smbd)

installer at help$ 


=====
-=*=- -=*=- -=*=- -=*=-  -=*=- -=*=- -=*=- -=*=- -=*=-
 Ben Hacker Jr            Sr. Security Analyst
                          IMSI    (www.imsidc.com)
 703.751.3757             2101 Wilson Blvd. Ste: 916
 strbenjr at yahoo.com       Arlington, VA   22201
-=*=- -=*=- -=*=- -=*=-  -=*=- -=*=- -=*=- -=*=- -=*=-

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/




More information about the samba mailing list