Tzafrir Cohen <[EMAIL PROTECTED]> writes:
> > I start samba (with "/sbin/service smb start" or equivalent), get OK
> > from both smbd and nmbd, and I expect to be able to use port 139 and
> > port 901 (SWAT). I get "connection refused" on both.
>
> 901 is swat, not directly related to the samba daemons. The listener for
> swat is (x)inetd.
I know. I have "disabled = no" in /etc/xinetd.d/swat.
I have made progress though: I had the vmware service (but not vmware
itself) running. I killed it, and now "/sbin/service smb status" says
smbd is running, and I can conenct to 139. I still cannot connect to
901.
I would be really interested to know what VMWare has agaist samba.
> 'netstat -lnt' ? Anything actually listening?
> 'netstat -lntp' ? What is it?
# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN 742/rpc.statd
tcp 0 0 0.0.0.0:513 0.0.0.0:* LISTEN 4665/xinetd
tcp 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 4665/xinetd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 3297/smbd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 714/portmap
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3440/httpd
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 1634/X
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4665/xinetd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 918/sshd
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 4665/xinetd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1134/sendmail: acce
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3440/httpd
- now smbd is listening on 139, but xinetd is not listening on
901. Here is /etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
Nothing depends on the values of user and only_from fields.
> > * funnily, while "pgrep smbd" gives me a pid, "/sbin/service smb
> > status" says "smbd is stopped" ("nmbd is running"), apparently
> > because "pidof", called from the status function, does not return a
> > pid.
> >
> > I must be missing something simple here. I'll be grateful for ideas.
>
> What about 'ps auxww |grep smb' , in case you don't trust the init script
> ?
That is, I think, functionally equivalent to "pgrep smb".
--
Oleg Goldshmidt | [EMAIL PROTECTED]
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]