LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Swat (https://www.linuxquestions.org/questions/linux-newbie-8/swat-327656/)

paolo623 05-27-2005 08:47 AM

Swat
 
Your help is much appreciated, I'm new to Linux! I'd like to get Swat working on Mandrake 10.1, can anybody point me in the right direction? When I run ./installswat.sh I get :
./installswat.sh: line : cd: such/../swat/: No such file or directory
./installswat.sh: line : cd: such/../swat/lang/: No such file or directory

The Swat files have been installed. Remeber to read the swat/readme for information on enabling and using swat.


If I try to point to localhost:901 with a browser, I get an error : could not connect to host localhost:901.
I've added tcp port 901 to etc/services.

Thanks

tuxrules 05-27-2005 09:32 AM

look into your /etc/inetd.conf for the Samba Web Adminstration Tool. Just below that line you must have a line like this

Code:

swat stream tcp nowait.400 root /usr/sbin/swat swat
uncomment this line if it is commented and try out

http://localhost:901

it should ask you for a uname and password...

Tux,

paolo623 05-27-2005 09:55 AM

tuxrules,
here is my xinetd.conf :

defaults
{

swat = 901/tcp
port = 901
socket type = stream
wait = no
only_from = localhost
user = root
server = /usr/local/samba/sbin/swat
disable = no
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d


I have the feeling I never got Swat properly installed. I've added the server line, it points to a folder with :nmbd, smbd, swat , winbbd executables.
Thks
Paolo

tuxrules 05-27-2005 10:05 AM

refer to this link.

paolo623 05-31-2005 07:33 AM

I've tried to follow the steps outlined in the document suggested. One problem :
[root@localhost polipa]# whereis swat
swat: /usr/share/swat

ishows an empty folder,
if I type :
[root@localhost polipa]# find / -name swat -print

I get the following output :
/home/polipa/Desktop/Trash/swat
/home/polipa/samba-3.0.14a/source/bin/swat
/home/polipa/samba-3.0.14a/swat
/usr/share/swat
/usr/local/samba/sbin/swat
/usr/local/samba/swat

According to the guideline I'm supposed to get a reference to xinetd :
frodo:/ # find / -name swat -print
/etc/xinetd.d/swat
/usr/sbin/swat
/usr/share/samba/swat
frodo:/ #

any idea?
Paolo

tuxrules 05-31-2005 08:25 AM

Swat seems to have been installed in

/usr/local/samba/sbin/

so change the path in your xinetd and try it...

paolo623 05-31-2005 08:49 AM

tuxrules,
the output is the same....when I try to reach localhost on port 901 I get a connection refused error from the browser.
I've addedd a tcp 901 line in services.......any other idea?
Thks
Paolo


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