LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Swat connection refused (https://www.linuxquestions.org/questions/linux-software-2/swat-connection-refused-116800/)

mudbone357 11-16-2003 05:04 PM

Swat connection refused
 
hi there,
I've got samba 3.0.0 up and running between my RH9 box and powerbook g4 just fine, but i can't get Swat to work at all. I have added swat 901/tcp to my /etc/services file, i added the following file, called swat, to my /etc/xinetd.d directory:

[root@localhost xinetd.d]# cat /etc/xinetd.d/swat
# description: swat is the Samba Web Administration Tool, which
# allows and administrator to configure Samba using a web
# browser interface, with the URL localhost:901
service swat.
{
socket_type = stream
wait = no
protocol = tcp
only_from = localhost
user = root
log_on_failure += USERID
server = /usr/local/samba/sbin/swat
port = 901
disable = no
}

which points to the proper location, and i've added the following to hosts.allow:

[root@localhost xinetd.d]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

swat: 127.0.0.1

I've also restarted xinetd a few different ways to get it to reset: /bin/kill -HUP -a xinetd, killall -HUP xinetd, and /sbin/service xinetd restart, but all i get when i enter localhost:901 in mozilla is a message saying: the connection was refused when attempting to contact localhost:901.

Also, i disabled my firewall, so that isn't it. If anyone has any ideas i would really appreciate it. Thanks. oh yeah, i took out the http's for this post, but they are there in the examples.

fancypiper 11-16-2003 05:17 PM

Please read the board rules you agreed to. Specifically the 6th bulleted item.

mudbone357 11-16-2003 05:28 PM

thanks for the suggestions, but i've already been poring over Oreiily's Running Linux, Linux Network Administrators Guide, and Using Samba, as well as spending several days googling and tweaking. I think I get the drift of your post, but i'm not just trying to sponge, i'm just not a programmer and am seeing if anyone has been in this same predicament. So, if you have any thoughts, as opposed to a stack of other books i can't afford, i would greatly appreciate it.

take care


All times are GMT -5. The time now is 07:09 PM.