LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unable to access SWAT (https://www.linuxquestions.org/questions/linux-software-2/unable-to-access-swat-54549/)

triplem 04-11-2003 05:48 AM

Unable to access SWAT
 
I am trying to access SWAT on http://localhost:901 but can't. Getting message

The connection was refused when attempting to contact localhost:901


Any ideas. I know it is probably something very simple but can't figure it out


thanks in advance

Triplem

notsoevil 04-11-2003 03:32 PM

First, is it installed?

In recent RPMs (say RH 8 - RH 9 at least), SWAT is installed via a separate RPM (I believe samba-swat). If you compile from source, its probably ready to use (but see following).

Second, is it enabled?

The appropriate RPMs usually create a service file in /etc/xinetd.d called (appropriately) 'swat'. Edit that file and make sure the line 'disable = yes' is changed to 'disable = no'. For example, here is my swat file:

Code:

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
}

Then restart xinetd and swat should be running:

Code:

bash#> kill -USR2 `head -1 /var/run/xinetd.pid`


All times are GMT -5. The time now is 04:22 PM.