by default SWAT is disabled, but even after enabling it, it still wont run,
i get broken pipe.
Here is what my current /etc/xinetd.d/swat looks like, note i changed
disable to no.
# 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.
disable = no
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
For me, I had to remove the "only_from = localhost" and "disabled = yes" lines
before it would work. (See recent posts by Dan Browning on redhat-
He has disabled = no which is fine. The only_from = localhost means using
127.0.0.1 as the
address if I remember rightly. Anyway does removing that only_from or using
127.0.0.1 work ?
Yup. You first must enable it, either with chkconfig
or ntsysv. It is configured to only listen on localhost
as a security measure.
*** Bug 18152 has been marked as a duplicate of this bug. ***
I have found this to be caused by an odd /etc/hosts file after a fresh install.
If you change the default contents of /etc/hosts from, eg:
127.0.0.1 localhost.localdomain localhost foo.bar.net foo
to the (as I understand) more correct:
127.0.0.1 localhost.localdomain localhost
192.168.0.1 foo.bar.net foo
then (assuming you've enabled it with "disabled=no") it will work fine. I'm
guessing xinetd tries to resolve 127.0.0.1 into a hostname and comes up with the
last alias, ie "foo", !=localhost, and it drops the connection?
I'm not sure if this is a bug in SWAT or xinetd, or if the created /etc/hosts
file is munged...
*** Bug 18574 has been marked as a duplicate of this bug. ***