LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-27-2005, 09:47 AM   #1
paolo623
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.1
Posts: 4

Rep: Reputation: 0
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
 
Old 05-27-2005, 10:32 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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,
 
Old 05-27-2005, 10:55 AM   #3
paolo623
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 05-27-2005, 11:05 AM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
refer to this link.
 
Old 05-31-2005, 08:33 AM   #5
paolo623
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 05-31-2005, 09:25 AM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Swat seems to have been installed in

/usr/local/samba/sbin/

so change the path in your xinetd and try it...
 
Old 05-31-2005, 09:49 AM   #7
paolo623
LQ Newbie
 
Registered: May 2005
Distribution: Mandrake 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
  


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
Swat namit Linux - Networking 5 12-02-2005 07:38 PM
Swat delalynd Red Hat 12 01-12-2005 07:16 AM
Swat Hone101 Linux - General 1 03-22-2003 08:33 AM
Swat jwithers1 Linux - Networking 2 09-26-2002 02:48 PM
SWAT in RH 7.3 xgtr Linux - Newbie 1 05-31-2002 10:51 PM


All times are GMT -5. The time now is 01:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration