LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-29-2005, 02:04 PM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
swat help


I am trying to run swat but when I try to connect to local host at port at port 901 I get an error

I have read some manuals online and they say that there shoud be a swat file in /etc/xinetd.d/ but this file is not present for me ?

btw I had added these lines of code in my /etc/xinetd.conf


Code:
service swat

{

port = 901

socket_type = stream

wait = no

only_from = 127.0.0.1

user = root

server = /usr/local/samba/sbin/swat

log_on_failure += USERID

disable = no

}

I took help from here
http://www.geekspeek.org/modules.php...=article&sid=7

but again I don't have a /usr/local/samba/sbin/swat directory ?

I am running fc2 and can see smb and its other two services running in the servers->services

What should I do ?
 
Old 04-29-2005, 03:22 PM   #2
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
Try this
Code:
root@gateway:~# which swat
/usr/sbin/swat
As you can see, my SWAT is in a different place. If it is installed and somewhere other than /usr/local just change xinetd.conf to reflect the real location.

EDIT In the unlikely event that it answers with something like which: no swat in $PATH then you either don't have swat installed or it's in a strange location.

Last edited by michaelsanford; 04-29-2005 at 03:24 PM.
 
Old 04-29-2005, 03:49 PM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
I got this as output

Code:
[root@ root]# which swat
/usr/bin/which: no swat in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin :/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
[root@ root]#
so means I dont have swat installed ? but I though that It got installed along with samba?
 
Old 04-29-2005, 04:35 PM   #4
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
That doesn't necessarily mean it's not installed, just that it's not in your $PATH.

Try this (my output is included):
Code:
root@gateway:~# find / -name swat
/usr/doc/samba-3.0.10/swat
/usr/sbin/swat
/usr/share/swat
 
Old 04-29-2005, 04:52 PM   #5
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
Thanks for your reply
actually I just want to use the linux machine as a gateway for internet access in windows , do I need to have samba for this ?

and my output is

[root@ root]# find / -name swat
/root/.Trash/swat
 
Old 04-29-2005, 06:09 PM   #6
michaelsanford
Member
 
Registered: Feb 2005
Location: Ottawa/Montréal
Distribution: Slackware + Darwin (MacOS X)
Posts: 468

Rep: Reputation: 30
1. No you don't. There are lots of other threads on setting up a linux machine as an internet gateway, but you only need samba if you want to serve files or printers from linux to windows. Plain old internet you need practically nothing.

2. You deleted swat since it's not in your trash...
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:36 AM.

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
Open Source Consulting | Domain Registration