[Pkg-samba-maint] SWAT problem

Arthur Butler arthurbutler at otters.ndo.co.uk
Sat Oct 28 15:49:47 CEST 2006


Hi there,

I wonder if you might be able to spare time to help me on this issue? I 
posted on Debian Help 5 weeks ago, and no-one has replied. I haven't 
submitted a bug report since I think it's likely to be a config problem.


Hi All,

Hope you can help me. I've previously configured Samba fine, but after a 
fairly recent update (I use testing) I cannot access swat at all. I've 
done a lot of Googling, but to no avail.
I cannot get access to swat at all. I've tried localhost:901, 
127.0.0.1:901, {hostname}:901 replacing with my hostname. Either get 
FireFox looking for localhost.com etc, or get a "The connection was 
reset" error with 192.168.1.10:901. I have also had difficulties 
accessing cups :631 page recently, but that is now working. I'm 
wondering if I've got a problem with loopback or reverse lookup or 
something.

netstat -tan:
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN

/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 = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}

/etc/inetd.conf: (presently after reading a bug report)
swat stream tcp nowait.400 root /usr/sbin/swat swat

also first tried default:
swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat

/etc/hosts:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.

127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

127.0.0.1 {hostname}-filled in!!

### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

/etc/hostname:
Has single line, with my {hostname} filled in

/etc/network/interfaces:
### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0

iface lo inet loopback

iface eth0 inet dhcp
hostname {hostname}

### END OF DEBCONF AREA. PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

I've reinstalled (after purging) all samba, swat files (and cups since I 
had trouble with the new 1.2 versions)

Running the network testing script on 
http://www.debian-administration.org/articles/128 says I don't have a 
loopback interface-could it be out of date??
I can ping localhost, 127.0.0.1, 192.168.1.10 (my ip) and {hostname}.

Firestarter firewall allows the connection.
Could /etc/hosts.allow be a problem?

Any other ideas?? I've run out.

Thanks in advance,

Art






More information about the Pkg-samba-maint mailing list