LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2003, 02:21 PM   #1
Harryc
Member
 
Registered: Dec 2002
Location: New York, USA
Distribution: OpenSUSE 10.0
Posts: 220

Rep: Reputation: 32
SWAT won't start


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:
=====================================================
In /etc/pam.d/samba

#%PAM-1.0
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.
=====================================================
In /etc/services

The entry Swat 901/tcp.. does exist

=====================================================
In /etc/hosts

127.0.0.1 localhost.localdomain localhost

=====================================================
In /usr/sbin/swat

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.
#

======================================================
In /etc/xinetd.d/swat

# 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.
service swat
{
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?

PHP Code:
Jan  1 14:58:42 localhost xinetd[1336]: socket creation failed (Address family not supported by protocol (errno 97)). service swat
Jan  1 14
:58:42 localhost xinetd[1336]: xinetd Version 2.3.7 started with ipv6 libwrap options compiled in.
Jan  1 14:58:42 localhost xinetd[1336]: Started working1 available service
Jan  1 14
:58:44 localhost xinetdxinetd 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.

Last edited by Harryc; 01-01-2003 at 05:45 PM.
 
Old 01-01-2003, 08:25 PM   #2
Harryc
Member
 
Registered: Dec 2002
Location: New York, USA
Distribution: OpenSUSE 10.0
Posts: 220

Original Poster
Rep: Reputation: 32
Well, you might have a laugh at a newbie fixing his/her own problems . Removed xinetd.ipv6-2.3.7-3mdk, and SWAT started right up. Go figure. It there something about xinetd.ipv6-2.3.7-3mdk that is flaky, or shouln't it be installed to begin with? Thanks

Last edited by Harryc; 01-01-2003 at 08:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start Swat(SuSE 8.2 samba 2.2.7) rmanocha Linux - Networking 6 10-24-2003 04:55 PM
cant start nmbd in SWAT or Samba jack cards Linux - Networking 5 08-08-2003 09:14 PM
swat rjonese Linux - Software 0 07-15-2003 03:26 AM
Swat?? FireWolf Linux - Newbie 18 04-09-2003 08:57 PM
SWAT in RH 7.3 xgtr Linux - Newbie 1 05-31-2002 10:51 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration