Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Thank you. I have never said it, but you have a great web site. It is of immense help...."

Geography

Where in the world do Tek-Tips members come from?
Pietjeparasietje (Programmer)
4 Jul 05 17:06
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 http://localhost:901" -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
PHV (MIS)
4 Jul 05 17:30
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

Pietjeparasietje (Programmer)
5 Jul 05 8:25
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
PHV (MIS)
5 Jul 05 8:36
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

Pietjeparasietje (Programmer)
5 Jul 05 8:52
Firewall is shut down..
I've read somewhere that when you're using xinetd you need some extra script? Does this help?
PHV (MIS)
5 Jul 05 8:56
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

Pietjeparasietje (Programmer)
5 Jul 05 9:30
Thanks anyway,

Someone else got any ideas, I'm real desperate..
rzs0502 (IS/IT--Management)
12 Jul 05 5:26
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."

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close