I am trying to get SWAT to start in Mandrake 9 and am getting a message as follows:
'The connection was refused when attempting to contact local host 901. I am using this command in root mozilla - http://localhost:901/
In Mandrake Control Center/services, SWAT is stopped. If I attempt to enable it i get a message 'There is no such option for an xdinetd services.'
smb is enabled, and I can ping localhost successfully.
Here is some information that I thought might be pertinent:
auth required /lib/security/pam_nologin.so
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_pwdb.so nullok shadow
account required /lib/security/pam_pwdb.so
the last 2 lines I added manually from a tip in another thread...didn't help, so I deleted them.
The entry Swat 901/tcp.. does exist
127.0.0.1 localhost.localdomain localhost
The file 'swat' (executable) does exist.
In /etc hosts.allow, and hosts.deny
both are blank
# 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.
# default: on
# 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.
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
That's about it...swat.exe is set to run in root, and I have tried to run swat from root. I appreciate any help or advice. Thanks for taking the time to read this.
Edit: here's an entry from /var/log/messages that might be a clue?
Jan 1 14:58:42 localhost xinetd: socket creation failed (Address family not supported by protocol (errno = 97)). service = swat
Jan 1 14:58:42 localhost xinetd: xinetd Version 2.3.7 started with ipv6 libwrap options compiled in.
Jan 1 14:58:42 localhost xinetd: Started working: 1 available service
Jan 1 14:58:44 localhost xinetd: xinetd startup succeeded
Edit: One more item that might be important, while trying to make xine (DVD player) work, I inadventently uninstalled both xinetd-2.3.7-3mdk and xinetd.ipv6-2.3.7-3mdk, then reinstalled both when I realized my mistake. Do I need both, is the install order important?. Might not be anything , but I am grasping at straws here.