[Samba] Swat not starting up
Posted: Thu Aug 24, 2006 3:42 pm
[Problem]
Using "Devil Linux", i tried to set up a small fileserver recently, and ran into the following. After configuring xinetd for swat, you only get an empty page when trying to connect - or no connection at all.
[Solution]
The xinetd.conf (usually /etc/xinetd.conf) has a default block right at the start of the config file. I did not take notice of this until i ran into the wall when trying to get swat to work.
Notice the "only_from" lines - and either edit them as you need, or delete them as a whole. The parameters in this part of the config file override the only_from lines of the configured connectors, thus did not allow me to connect to swat, even tho the swat part itself was configured properly:
Again, take note of the only_from line in the swat part of the configuration. Both (default and swat) have to allow you to connect, else swat will not work.
Using "Devil Linux", i tried to set up a small fileserver recently, and ran into the following. After configuring xinetd for swat, you only get an empty page when trying to connect - or no connection at all.
[Solution]
The xinetd.conf (usually /etc/xinetd.conf) has a default block right at the start of the config file. I did not take notice of this until i ran into the wall when trying to get swat to work.
Code: Select all
defaults
{
instances = 15
log_type = FILE /var/log/servicelog
log_on_success = HOST PID
log_on_failure = HOST
only_from = 128.138.193.0 128.138.204.0
only_from = localhost 192.168.1.0/24
disabled = tftp
}
Code: Select all
service swat
{
disable = no
port = 901
socket_type = stream
wait = no
only_from = localhost
user = root
server = /usr/sbin/swat
log_on_failure += USERID
}