LinuxQuestions.org
Review your favorite Linux distribution.
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 11-22-2002, 05:50 AM   #1
nero64
LQ Newbie
 
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Rep: Reputation: 15
SWAT-Admin tool


I installed the SWAT Samba admin tool and when i try and start it from Gnome gui i get:

Netscape network connection was refused by the server 127.0.0.1:901
The server may not be accepting connections or it may be busy. Try again later

How do i get it to work?
 
Old 11-22-2002, 06:17 AM   #2
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
How do you start SWAT?
With inetd?
 
Old 11-23-2002, 01:53 AM   #3
nero64
LQ Newbie
 
Registered: Nov 2002
Location: My bedroom
Distribution: RH 7.1
Posts: 29

Original Poster
Rep: Reputation: 15
Donald are you trying to help me with your answer?

I don't have inetd but i have started xinetd and still it doesn't work
 
Old 11-23-2002, 06:03 AM   #4
Donald1000
Member
 
Registered: Oct 2002
Location: Germany
Distribution: Debian, Non-Linux: Solaris, FreeBSD
Posts: 107

Rep: Reputation: 15
If you are starting SWAT with xinetd it has to look like this:

## /etc/xinetd.d/swat
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/local/samba/bin/swat
log_on_failure += USERID
disable = No
}

-----

Write in /etc/hosts.allow
swat : localhost : allow
 
Old 11-23-2002, 08:04 AM   #5
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
what donald means is to run this as root:

/sbin/chkconfig swat on

Then retry accessing 127.0.0.1:901
 
Old 11-23-2002, 08:52 AM   #6
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Not quite...

The chkconfig command works for SysV services, those with init files in /etc/rc.d/init.d/ directory.
SWAT is run from xinetd and has a file in /etc/xinetd.d/ directory as Donald1000 says...

That file usually has "disable = yes" by default, so that needs to be changed to "disable = no", then do
service xinetd restart.
 
Old 11-23-2002, 04:11 PM   #7
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
I don't think so. If a service is under xinetd.d, running /sbin/chkconfig service on should enable it and then restart xinetd in just one step.

Anyway, I'm just suggesting a shorcut. Donald's answer is also correct and detailed (I do that too in my early linux setups).

chkconfig - yes it handles sysv services but it also controls xinetd services. Run this to check:

/sbin/chkconfig --list swat

No other runlevel specified for swat.. Just an FYI. both answers will do the same thing.
 
Old 11-25-2002, 06:43 PM   #8
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Not so, sorry...

chkconfig's job is to read the level numbers in the intro to the /etc/rc.d/init.d files and then create shortcuts in the various rc~.d directories to match those numbers and runlevels for starting and stopping.
eg
# chkconfig: 2345 10 90
It doesn't know about files in any other directories...

Now, that doesn't mean the services like swat can't live in /etc/rc.d/init.d
Using xinetd is a choice.
By default, swat uses xinetd to start and stop, not running as a standalone server,
It does this to take advantage of hosts.allow, hosts.deny & tcp_wrappers for it's security.

A standalone server is just that. It has to have built in security, (and can of course always be run from xinetd, if you chose that way). Some servers don't like starting and stopping like that. They use child processes to do that. eg squid, apache, bind...
swat has 1 level of security... hence uses the extras from xinetd etc.
 
Old 12-15-2002, 05:15 AM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
OK... NOW I EAT MY HAT !!!

YES, I have using chkconfig to turn swat on/off from inside xinetd..
so born4linux, I give you my apologies... & thank you for the education
 
  


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
Postfix Admin tool not able to create mailbox davidbalt Linux - Networking 1 09-22-2004 10:02 PM
CUPS admin tool hangs coshx Linux - Software 0 09-11-2004 02:38 AM
Linux Admin Tool SeaLestt Linux - Newbie 7 07-23-2004 08:52 PM
admin tool gunz Linux - General 2 10-01-2002 03:22 AM
Simple LAN admin tool Ryan_Sutton Linux - Networking 2 06-02-2002 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration