URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 30532
[ Назад ]

Исходное сообщение
"Samba /не может запуститься smbd/"

Отправлено mazza , 02-Июн-03 11:59 
вот что в логе .
а nmbd запускается номано
подскажите чё делать ?
2003/06/02 11:54:36, 0] smbd/server.c:main(835)
  standard input is not a socket, assuming -D option
[2003/06/02 11:54:36, 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

Содержание

Сообщения в этом обсуждении
"Samba /не может запуститься smbd/"
Отправлено gennady , 02-Июн-03 15:31 
>вот что в логе .
>а nmbd запускается номано
>подскажите чё делать ?
>2003/06/02 11:54:36, 0] smbd/server.c:main(835)
>  standard input is not a socket, assuming -D option
>[2003/06/02 11:54:36, 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
Другой процесс уже использует этот порт. Посмотри в /etc/inetd.conf или /etc/xinetd.conf, не стартует ли какой процесс на этом порту, или загрузочные сценарии надо копать.


"Samba /не может запуститься smbd/"
Отправлено mazza , 02-Июн-03 17:50 
>>вот что в логе .
>>а nmbd запускается номано
>>подскажите чё делать ?
>>2003/06/02 11:54:36, 0] smbd/server.c:main(835)
>>  standard input is not a socket, assuming -D option
>>[2003/06/02 11:54:36, 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
>Другой процесс уже использует этот порт. Посмотри в /etc/inetd.conf или /etc/xinetd.conf, не
>стартует ли какой процесс на этом порту, или загрузочные сценарии надо
>копать.
неа , не помогает


"Samba /не может запуститься smbd/"
Отправлено Michail , 03-Июн-03 09:20 
>>>  Error = Address already in use
Такое ощущение, что самба сначала лочит порт, а потом пытается его открыть.
Что nmap говорит?



"Samba /не может запуститься smbd/"
Отправлено mazza , 06-Июн-03 09:23 
а можно где нитьглянуть правильные inet.conf и services
может я там чето напутал

"Samba /не может запуститься smbd/"
Отправлено lavr , 06-Июн-03 09:56 
>а можно где нитьглянуть правильные inet.conf и services
>может я там чето напутал

FreeBSD /etc/inetd.conf:

--------------------------- /etc/inetd.conf ----------------------------
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with '#'.
# To enable a service, remove the '#' at the beginning of the line.
#

ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l

#telnet stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
#telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
#shell  stream  tcp     nowait  root    /usr/libexec/rshd       rshd
#shell  stream  tcp6    nowait  root    /usr/libexec/rshd       rshd
#login  stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind
#login  stream  tcp6    nowait  root    /usr/libexec/rlogind    rlogind
#finger stream  tcp     nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#finger stream  tcp6    nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#exec   stream  tcp     nowait  root    /usr/libexec/rexecd     rexecd
#uucpd  stream  tcp     nowait  root    /usr/libexec/uucpd      uucpd
#nntp   stream  tcp     nowait  usenet  /usr/libexec/nntpd      nntpd
#
# run comsat as root to be able to print partial mailbox contents w/ biff,
# or use the safer tty:tty to just print that new mail has been received.
#comsat dgram   udp     wait    tty:tty /usr/libexec/comsat     comsat
#
# ntalk is required for the 'talk' utility to work correctly
#ntalk  dgram   udp     wait    tty:tty /usr/libexec/ntalkd     ntalkd
#tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -s /tftpbo
ot
#tftp   dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -s /tftpbo
ot
#bootps dgram   udp     wait    root    /usr/libexec/bootpd     bootpd
#
# "Small servers" -- used to be standard on, but we're more conservative
# about things due to Internet security concerns.  Only turn on what you
# need.
#
#daytime stream tcp     nowait  root    internal
#daytime stream tcp6    nowait  root    internal
#daytime dgram  udp     wait    root    internal
#daytime dgram  udp6    wait    root    internal
#time   stream  tcp     nowait  root    internal
#time   stream  tcp6    nowait  root    internal
#time    dgram  udp     wait    root    internal
#time    dgram  udp6    wait    root    internal
#echo   stream  tcp     nowait  root    internal
#echo   dgram   udp6    wait    root    internal
#echo   dgram   udp     wait    root    internal
#echo   stream  tcp6    nowait  root    internal
#discard stream tcp     nowait  root    internal
#discard stream tcp6    nowait  root    internal
#discard dgram  udp     wait    root    internal
#discard dgram  udp6    wait    root    internal
#chargen stream tcp     nowait  root    internal
#chargen stream tcp6    nowait  root    internal
#chargen dgram  udp     wait    root    internal
#chargen dgram  udp6    wait    root    internal
#
# Kerberos authenticated services
#
#klogin stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind -k
#eklogin stream tcp     nowait  root    /usr/libexec/rlogind    rlogind -k -x
#kshell stream  tcp     nowait  root    /usr/libexec/rshd       rshd -k
#kip    stream  tcp     nowait  root    /usr/libexec/kipd       kipd
#
# CVS servers - for master CVS repositories only!  You must set the
# --allow-root path correctly or you open a trivial to exploit but
# deadly security hole.
#
#cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root
=/your/cvsroot/here pserver
#cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root
=/your/cvsroot/here kserver
#
# RPC based services (you MUST have portmapper running to use these)
#
#rstatd/1-3     dgram rpc/udp wait root /usr/libexec/rpc.rstatd  rpc.rstatd
#rusersd/1-2    dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd
#walld/1        dgram rpc/udp wait root /usr/libexec/rpc.rwalld  rpc.rwalld
#pcnfsd/1-2     dgram rpc/udp wait root /usr/libexec/rpc.pcnfsd  rpc.pcnfsd    
#rquotad/1      dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
#sprayd/1       dgram rpc/udp wait root /usr/libexec/rpc.sprayd  rpc.sprayd
#
# example entry for the optional pop3 server
#
#pop3   stream  tcp     nowait  root    /usr/local/libexec/popper       popper
#
# example entry for the optional imap4 server
#
#imap4  stream  tcp     nowait  root    /usr/local/libexec/imapd        imapd

pop3    stream  tcp     nowait  root    /usr/local/libexec/ipop3d   ipop3d
imap4   stream  tcp     nowait  root    /usr/local/libexec/imapd    imapd

#pop3s/imaps SSL
pop3s   stream  tcp     nowait  root    /usr/local/libexec/ipop3d       ipop3d
imaps   stream  tcp     nowait  root    /usr/local/libexec/imapd        imapd

#--lavr for whois service
whois stream tcp nowait nobody  /usr/local/sbin/whois whois

# Return error for all "ident" requests
#
#auth   stream  tcp     nowait  root    internal
#auth   stream  tcp6    nowait  root    internal
#
# Provide internally a real "ident" service which provides ~/.fakeid support,
# provides ~/.noident support, reports UNKNOWN as the operating system type
# and times out after 30 seconds.
#
#auth   stream  tcp     nowait  root    internal        auth -r -f -n -o UNKNOWN
-t 30
#auth   stream  tcp6    nowait  root    internal        auth -r -f -n -o UNKNOWN
-t 30
#
# Example entry for an external ident server
#
#auth   stream  tcp     wait    root    /usr/local/sbin/identd  identd -w -t120
#
# Example entry for the optional qmail MTA
#  NOTE: This is no longer the correct way to handle incoming SMTP
#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
#        instead.
#
#smtp   stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qma
il/bin/qmail-smtpd
#
# Enable the following two entries to enable samba startup from inetd
# (from the Samba documentation).  Enable the third entry to enable the swat
# samba configuration tool.
#
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
#netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
#swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat
---------------------------- end of /etc/inetd.conf ---------------------

[alone]~ > ps -axuww | grep smbd | grep -v grep
root     384  0,0  0,1  4192  116  ??  Is   23Apr03   0:00,39 /usr/local/sbin/smbd -D
[alone]~ > ps -axuww | grep nmbd | grep -v grep
root     386  0,0  0,4  3120  488  ??  Ss   23Apr03   4:54,82 /usr/local/sbin/nmbd -D
[alone]~ > lsof -i | grep netbios
smbd        384   root   10u  IPv4 0xccf64000      0t0  TCP *:netbios-ssn (LISTEN)
nmbd        386   root    6u  IPv4 0xccea05c0      0t0  UDP *:netbios-ns
nmbd        386   root    7u  IPv4 0xccea0680      0t0  UDP *:netbios-dgm
nmbd        386   root    8u  IPv4 0xccea0740      0t0  UDP alone.dubna.ru:netbios-ns
nmbd        386   root    9u  IPv4 0xccea0800      0t0  UDP alone.dubna.ru:netbios-dgm
[alone]~ >


"Samba /не может запуститься smbd/"
Отправлено wawont , 06-Июн-03 15:47 
Так чем дело кончилось у меня такая же трабла!!!
smbd в процесах нет!
nmbd на месте.
И еще:
# lsof -i | grep netbios
inetd      284   root   11u  IPv4    349       TCP *:netbios-ssn (LISTEN)
nmbd       362   root    6u  IPv4   1196       UDP *:netbios-ns
nmbd       362   root    7u  IPv4   1197       UDP *:netbios-dgm
nmbd       362   root    8u  IPv4   1199       UDP ns2.isp.nsc.ru:netbios-ns
nmbd       362   root    9u  IPv4   1200       UDP ns2.isp.nsc.ru:netbios-dgm
# less /etc/inetd.conf | grep mbd    
netbios-ssn    stream  tcp     nowait  root    /usr/sbin/smbd  smbd
netbios-ns     dgram   udp     wait    root    /usr/sbin/nmbd  nmbd
#

"Samba /не может запуститься smbd/"
Отправлено Demon666 , 22-Июл-04 02:49 
дело говоришь,у меня тоже не запускается