Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SWAT Problem not opening port 901

Status
Not open for further replies.

Pietjeparasietje

Programmer
Jun 13, 2005
55
NL
Hi,

I'm pretty new to samba and swat. I've got samba installed and working, but the problem lies with swat.
My config looks like this:
Code:
service swat
{
	disable	= no
	port	= 901
	socket_type	= stream
	wait 	= no
	only_from = 127.0.0.1
	user	= root
	server	= /usr/sbin/swat
	log_on_failure	+= USERID
}
But I get a "connection was refused trying to connect to -message.

If I run samba and then check nmap localhost port 901 is closed.
Do I have to start or run swat as a service, because when I enter "swat start" after a few minutes it gives me a alarm clock.

Hope someone can help me !!!
Thanks,

Peter
 
My (working) config:
#/etc/inetd.conf
swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat

#/etc/services
swat 901/tcp

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I'm sorry,

I've got the services set the same way, but I haven't got the inetd.conf file.
What I do have is /etc/xinetd.conf containing this:
Code:
defaults
{
	instances               = 60
        log_type                = SYSLOG authpriv
        log_on_success		= HOST PID
        log_on_failure		= HOST
	cps			= 25 30
}

includedir /etc/xinetd.d

swat stream tcp nowait.400 root /usr/sbin/swat swat
So I guess that's pretty much the same as you do..
Hope you can help me.

Peter
 
No firewall issue ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Firewall is shut down..
I've read somewhere that when you're using xinetd you need some extra script? Does this help?
 
Sorry, I'm a legacy unix guy (I don't know anything about xinetd)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
You should just have it on one.
On my Slackware and AIX systems, we have port 901 defined in /etc/services
swat 901/tcp

And started from inetd with entry in inetd.conf
swat stream tcp nowait.400 root /usr/sbin/swat swat

This is exactly what you have.
Have you tried commenting it out of xinetd.conf
Make sure the path to swat is correct in inetd.conf
Stop and start inetd


"If you always do what you've always done, you will always be where you've always been."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top