Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
}
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?
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.