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.
I've got Samba almost up and running. But, I'm a newbie and need Swat to configure a few things. I've gone to /etc/services and made sure that I have the entry "swat 901/tcp" I have checked /etc/xinetd.d/swat and added "port = 901" and changed it to "disable = no" I have gone through the steps in the documentation on setting up swat. It all looks correct.
But when I try to run the program, I get the message:
An error occured while loading localhost:901
Could not connect to host localhost (Port 901)
I've re-started xinetd (actually, re-started). I'm not using a firewall. This is all behind a NAT router that serves as our firewall. When I give the iptables -nL command, I get:
Chain Input policy Accept
Chain Forward policy Accept
Chain Output policy Accept
Yes, I do have the packages installed. That was easy to check using the help files. I ran a couple commands and here is what they returned:
whereis swat
swat: /usr/sbin/swat /usr/share/man/man8/swat.8.gz
find /usr/share/samba/swat -print
/usr/share/samba/swat
/usr/share/samba/swat/help
/usr/share/samba/swat/help/smbcontrol.1.html
/usr/share/samba/swat/help/diagnosis.html
. . . and another 160 lines of help files
And, here¡¦s this guy:
# 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
{
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
i am right where you are, I am also having printing problems. I think Samba and Swat aren't up to par. You can reach me direct by dlo@charter.net.
I tried netstat -a and got the same with no reference to 901
Dan
I have some info that i hope can help your Samba and Swat problems.
in /etc/xinetd.d the original swat file looks like this below: ( for my install of redhat 9 anyway)
# 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 = no
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}
You will need to change one line and add one line. Add to the swat file in /etc/xinetd.d protocl = tcp and the line only_from = localhost put in the ip address 127.0.0.1 so that it looks like this only_from = 127.0.0.1
# 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 = no
port = 901
protocol = tcp
socket_type = stream
wait = no
only_from = 127.0.0.1
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}[
This has worked for me. Let us know if it works for you too, hope it does.
I was very frustrated by this as well - - felt it should work out of the box... After trying just about everything, I fell upon something that probably only a newbie would encounter. Those who have been at it for a while probably take it for granted. Try this...
Go into YaST or if you're not using SuSE, you should have a Network Configuration tool. In SuSE I go into the YaST then Network Services then Network Services (icon looks like a traffic light). When you click on this you will see a list of services on your system. If they are greyed out (all of mine were), you simply need to enable services. You can actually see SWAT in this list, and if you've done everything else correctly according to manuals, etc. You will see that it is ON. Give it a shot, after I did this I was finally able to get into SAMBA!!!
only_from = localhost is not even needed. The only reason you have only_from is to limit the logons to swat to the local host. I remarked out locall host and am now configuring swat from my w2k machine, which I need due to some apps. So it is really convient.
protocal = tcp is mandatory.
but i am still trying to figure out how to see what else is listening on port 901. Anyone know how to read the output of netstat?
Be careful about using swat accross the network, from another machine if you are not using ssl, or the password username combinaton is sent in clear text and this means that the root account is sent across the network without any encryption. not the best of scenarios.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.