I had a similar problem, and the only way I could get SWAT to come up
(I'm still not sure I should have to--what's name resolution for?) was
to use, in the swat file:
only_from = 127.0.0.1
instead of
only_from = localhost
Eric Hines
pjwolters@home.nl wrote:
>Hi everyone,
>
>In the last few days I've spended hours and hours on the web surching
for a solution to my problems. Eventhough it looked like there where several
other people having the same problem I couldn't find a way to solve it.
>Therefore I'm hoping that one of you could help me with the following
problem.
>
>I've installed Samba 3.0.14a on RedHat 9.0. Samba is working perfectly.
>But the problem lies with SWAT. When I type in my browser
"http://localhost:901" I get the following error:
>"Connection was refused when attempting to contact localhost:901"
>
>My config files look like this:
>
>--/etc/xinetd.conf--
>#
># Simple configuration file for xinetd
>#
># Some defaults, and include /etc/xinetd.d/
>
>defaults
>{
> instances = 60
> log_type = SYSLOG authpriv
> log_on_success = HOST PID
> log_on_failure = HOST
> cps = 25 30
>}
>
>includedir /etc/xinetd.d
>swat stream tcp nowait.400 root /usr/sbin/swat swat
>----------------------------------------------------
>
>--/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
>{
> disable = no
> port = 901
> socket_type = stream
> wait = no
> only_from = localhost
> user = root
> server = /usr/sbin/swat
> log_on_failure += USERID
>}
>--------------------------------------
>and in my services I've added the line: "swat 901/tcp"
>I'm not using a firewall.
>So, the service samba is working fine, but when I start xinetd he failes.
>"service xinetd status" then gives : "xinetd dead but pid
file exists".
>
>When I look into my /var/log/messages I come across the following
statements:
>-----------
>Jul 6 15:12:33 localhost xinetd: xinetd shutdown failed
>Jul 6 15:12:33 localhost xinetd[2456]: missing service keyword [line=20]
>Jul 6 15:12:33 localhost xinetd[2456]: missing } in last service entry
[line=20]
>Jul 6 15:12:33 localhost xinetd[2456]: 2456 {general_handler} (2456)
Unexpected signal: 11 (Segmentation fault)
>Jul 6 15:12:33 localhost last message repeated 9 times
>Jul 6 15:12:33 localhost xinetd[2456]: 2456 {bad_signal} Received 10
signals in 1 seconds. Exiting...
>Jul 6 15:12:33 localhost xinetd: xinetd startup succeeded
>----------------
>
>But I can't find the file where the "}" is missing in line 20.
>I trully hope someone could help me with this because I really really want
to get this working.
>I would be very thankfull, if you got some usefull info.
>Thanks,
>
>P.J. Wolters
>
>
>
>
--
He can compress the most words into the smallest ideas of any man
I ever met.
- Abraham Lincoln