Click to See Complete Forum and Search --> : Can't "see" SWAT
brucehohl
01-25-2003, 02:29 PM
I'm at the beginning of setting up Samba. I can't see SWAT from my browser and need help. Here's what I did:
1 - Installed Samba from YaST2 of SuSE 8.1. Swat files appear installed at /usr/share/samba/swat.
2 - Reviewed "man swat" and made the following changes or confirmations:
a. Confirmed that "swat 901/tcp" was included in /etc/services file.
b. Edited /etc/inetd.conf file to include "swat stream tcp nowait.400 root /usr/sbin/swat swat"
c. Added text file /etc/init.d/swat as follows:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
3 - Rebooted box.
4 - Started smbd and nmbd from terminal as root.
RESULT: couldn't open swat as http://localhost:901/ from browser. Thanks for any help or clues.
michaelk
01-25-2003, 03:01 PM
installed at /usr/share/samba/swat.
But from init.d
server = /usr/sbin/swat
Change init.d to match where its installed and try again.
otbibb
01-25-2003, 03:15 PM
I haven't used SWAT, but I'm pretty sure you have to have apache web server running.
In my Slackware box it would be /etc/rc.d/rc.httpd start..., though it'll be different depending on your distro.
brucehohl
01-25-2003, 03:40 PM
I'm following a book called "Samba Essentials for Windows Adminstrators" by Gary Wilson. This book says that SWAT includes it's own "mini-web server" so I shouldn't need Apache.
brucehohl
01-25-2003, 03:51 PM
At console as root I entered "which swat", response was /usr/sbin/swat. So my system sees swat at /usr/sbin/swat and this is the path included in /etc/inetd.conf and /etc/init.d/swat. I think this path is OK?
cage47
01-25-2003, 03:57 PM
Originally posted by otbibb
I haven't used SWAT, but I'm pretty sure you have to have apache web server running.
The answer to this is NO.
Try opening konqueror/mozilla or any web browser and enter
http://localhost:901
This should take you to swat.
brucehohl
01-25-2003, 05:01 PM
Thanks for the replies. Back to the beginning ..... I'm at the beginning of setting up Samba and can open swat as http://localhost:901/ from browser. Here's what I've done so far:
1 - Installed Samba from YaST2 of SuSE 8.1.
2 - Reviewed "man swat" and made the following changes or confirmations:
a. Confirmed that "swat 901/tcp" was included in /etc/services file.
b. Edited /etc/inetd.conf file to include "swat stream tcp nowait.400 root /usr/sbin/swat swat"
c. Added text file /etc/init.d/swat as follows:
service swat
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
3 - Rebooted box.
4 - Started smbd and nmbd from terminal as root.
RESULT: couldn't open swat as http://localhost:901/ from browser. Thanks for any help.
bs_texas
01-25-2003, 05:13 PM
In my Red Hat 8.0 system, I also had to go to /etc/xinetd.d/swat file and change 'disable=yes' to 'disable=no' and then /etc/init.d/xinetd restart .
This is according to my Red Hat Linux 8 Bible.
edited:
oops - should pay more attention to the whole post, eh?
sorry
ok, another edit, I notice you have
only_from = localhost
Mine is
only_from = 127.0.0.1 instead.
Is your hostname still localhost, or did you maybe change it along the way?
just a thought...
brucehohl
01-25-2003, 05:52 PM
Much thanks to BS_2003!
Changing "only_from = localhost" to "only_from = 127.0.0.1" in my /etc/init.d/swat file and restarting ("etc/init.d/inetd restart" at terminal) has corrected the problem. I can now open swat on my browser.
Maybe now I should go fix the leaking bathroom sink like my wife asked me to do .... 3 weeks ago. I put a bucket under it and told her Linux was more interesting.