LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2002, 10:35 PM   #1
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Rep: Reputation: 0
How Do I Install Swat


Can someone tell me how to install swat in Redhat 7.2? I have Samba running , and the web server running, but I am unable to access Swat. Swat does not show up in the system services, and there is no config file for swat, which leads me to believe that it is not installed.

Thanks
 
Old 01-24-2002, 11:00 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
so if you run setup it's not in there?

get it from samba.org and install it


http://us1.samba.org/samba/GUI/

Last edited by DavidPhillips; 01-24-2002 at 11:02 PM.
 
Old 01-24-2002, 11:18 PM   #3
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Original Poster
Rep: Reputation: 0
When I run setup, Swat does not show up. Samba is running fine though.
 
Old 01-25-2002, 04:02 PM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
You dont need a webserver to run swat, its its own server. Look in /etc/xinetd.d for a file called swat, if the file is there then swat is installed, check the file for the line: disabled=yes change yes to no, and restart xinetd. You connect to swat by using a browser pointed at http://yoursambaserver:901, I cant remember if its http or https


heres a link:
http://samba.linuxbe.org/en/samba/learn/swat.html
 
Old 01-25-2002, 09:47 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if it's not in setup then you will have to install.
 
Old 01-26-2002, 06:21 PM   #6
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Original Poster
Rep: Reputation: 0
There is no swat file in that directory. How do I go about installing it?
 
Old 01-26-2002, 07:52 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
get it from the link in my post above
 
Old 01-29-2002, 09:30 PM   #8
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Original Poster
Rep: Reputation: 0
Maybe I'm doing something wrong, but it's still not working. Can anyone else give me any suggestions?

Thanks
 
Old 01-30-2002, 09:18 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
did you install it yet?
do you have /usr/sbin/swat?
do you have xinetd?

http://www.redhat.com/swr/i386/samba...7-36.i386.html


you have to enable it in /etc/xinetd.d/swat

set disable=no
set only_from = to the address you want to access it from.

/etc/xinetd.d/swat
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
disable = yes
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
 
Old 01-30-2002, 05:53 PM   #10
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Original Poster
Rep: Reputation: 0
Obviously, I have no idea what I am doing. I've checked everyhing above and it looks fine. I never had the swat file, so I created one, but it did nothing. I just downloaded the file you put a link to and I typed the following:

rpm -Uvh "filename"

It installed, but it looks like it kept the same swat file which I created before. Swat still does not work. Do I have to do something else to get this installed? I read some where about typing ./configure to configure it, but what dir would I do this in?

Thanks
 
Old 01-30-2002, 11:17 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The rpm knows where to put everything, thats the purpose of using rpm.

you can install it from anywhere.

have you tried to open swat in a browser



http://localhost:901
 
Old 01-30-2002, 11:21 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
run this

ps -A

and see if xinetd is running


try running setup in an xterm and go into system services

make sure swat and xinetd is on

save and quit


Last edited by DavidPhillips; 01-30-2002 at 11:24 PM.
 
Old 01-31-2002, 07:08 PM   #13
ldogg
LQ Newbie
 
Registered: Jan 2002
Posts: 10

Original Poster
Rep: Reputation: 0
Xinetd is running. When I run setup, samba and swat do not show up in the list.
 
Old 01-31-2002, 09:18 PM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it should be smb in the list

if they are not in there then xinetd is not setup for them

you should probably get the samba suite rpms

ftp://ftp.redhat.com/pub/redhat/redh...6/RedHat/RPMS/

there are four files all starting with the word samba


Install it, it should fix everything.

then you just enable them with setup

make sure the swat file is setup as shown in the earlier post

Last edited by DavidPhillips; 01-31-2002 at 09:20 PM.
 
Old 02-01-2002, 10:27 AM   #15
LenkaNguyen
Member
 
Registered: Nov 2001
Location: Denver, Colorado
Posts: 37

Rep: Reputation: 15
Hi,

I am using Suse Linux 7.3 distribution. I got swat running smoothly. In fact, SWAT is part of Samba package. Since you got Samba running, so swat is already installed on your system. I did not do SWAT configuration in order to launch SWAT. All I need to do is to edit 2 files /etc/inetd.conf and /etc/services (Notes: make sure that you have correct path for inetd.conf. If not you will NEVER be able to launch SWAT). Assuming SWAT configuration for Redhat and Suse works the same way.
Once you have edited /etc/inetd.conf and /etc/services files you need to send a HUP signal to inetd (It listens on certain internet sockets for connection requests and starts the program for this request). Issue this command:

Kill -1 PID

(PID is the process ID of the inetd daemon). In order to find the PID, issue this command line

ps –x

To launch SWAT just run your favorite web browser and point it at http://localhost:901

Note: SWAT will rewrite your smb.conf. It will rearrange the entries and delete all comments, include = and copy = “ options if you have a carefully crafted smb.conf then back it up or don’t use swat!

Hope this helps.

Good Luck

Lenka.
 
  


Reply



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 Install technochef Fedora 6 09-27-2004 07:45 AM
SWAT install Redhat 9 jkpalmer52 Linux - Software 1 01-28-2004 04:57 AM
How do i install SWAT ??? Speednow Linux - Software 15 05-28-2003 07:50 AM
Trying to use SWAT, Samba and install AMSN TheCrazedLog Linux - Software 1 04-08-2003 11:07 PM
Redhat SWAT install? loganwva Linux - Networking 2 03-31-2002 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:08 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