Re: Samba--Connection Refused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Michael Schwendt wrote:

On Wed, 15 Dec 2004 08:56:45 -0800, Wayne Watson wrote:


# service xinetd start
Starting xinetd:                                         [  OK  ]

Same.


# chkconfig swat on
# netstat -tpan | grep 901
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 3914/xinetd

No output. No 901 in output.


Huh? So not even the xinetd superserver listens on port 901. Now
please don't tell me you edited the /etc/xinet.d/swat file manually
and in Microsoft Windows or so. In case you did -- what I suspect --
run dos2unix on the file.

Heavens, no! vi all the way under Linux.

Here's my swat file:
# 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
{
	disable	= no
	port		= 901
	socket_type	= stream
	wait 		= no
	user		= root
	server		= /usr/sbin/swat
	log_on_failure	+= USERID
}
#only_from 	= 127.0.0.1 192.168.0.1

BTW, iptables -F did nothing.





# telnet 127.0.0.1 swat

telnet: swat: bad port


That looks broken, too. Does the following work for you at least?

$ getent services swat
swat                  901/tcp
Gave me nothing with or without xinetd being on.


I mean, trying to connect with telnet to port 901 doesn't make sense anyway because nothing listens on that port. It's just a basic test. "telnet 127.0.0.1 901" would be the same.



# /usr/sbin/swat -V

No output. I had to Ctrl-C to break from its grip.


Expected result. Old SWAT didn't have that option. Want to test that.


# /usr/sbin/swat < /dev/null
HTTP/1.0 401 Authorization Required
WWW-Authenticate: Basic realm="SWAT"
Connection: close
Content-Type: text/html

<HTML><HEAD><TITLE>401 Authorization Required</TITLE></HEAD><BODY><H1>401 Authorization Required</H1>You must be authenticated to use this service<p></BODY></HTML>

Got exactly what you show.


So /usr/sbin/swat works. It's just not executed by the xinetd
superserver. More debugging is necessary there. See above.

I hope to take a shot at this with webmin later today. I've downloaded it but just haven't carted it out to the other building to install it on Linux.


--
             Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
                 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
                  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
            (Formerly Homo habilis, erectus, heidelbergensis and now sapiens)

                    "There's no such thing as a stupid question,
                     but they're the easiest to answer!" -- anon.

                        Web Page: <home.earthlink.net/~mtnviews>


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux