Operating System - Linux
1820694 Members
2868 Online
109627 Solutions
New Discussion юеВ

Redhat 9 Linux samba Swat problem

 
SOLVED
Go to solution
Sakui
Frequent Advisor

Redhat 9 Linux samba Swat problem

Hi All,
I have installed redhat 9 and want to configure samba using Swat. I have downloaded latest samba version from Samba.org.It is samba 3.0.14a-1.src.rpm. i have successfully installed the samba and have gone to etc/xinetd.d/swat to edit the swat file.I have change the port to 901,and select the rest of the configuration needed.but when i type localhost:901 in the browser. it does not give error but nothing is display is the browser.But when i used the command testparam /etc/xinetd.d/swat i give error on each line that is is in the configuration file such as unrecognizing and unknown to all the variable in the swat file.i Used the kate editor to edit the swat file.
I really need your help on this issue.
I need to used the web interface to configure samba.
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: Redhat 9 Linux samba Swat problem

As far i know, testparm is used to verify the smb.conf file.

Use the chkconfig --list command to see if the service is enabled, if not, use:

chkconfig swat on

and

service xinetd reload
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Nobody's Hero
Valued Contributor

Re: Redhat 9 Linux samba Swat problem

try using the browser that is running on the RedHat Unix Server locally. Are you using a b IE browser from you windows desktop?

launch /usr/bin/konqueror or mozilla and then try to connect to localhost:901.

See if that works 1st.
UNIX IS GOOD
Steven E. Protter
Exalted Contributor

Re: Redhat 9 Linux samba Swat problem

service iptables stop

iptables may be preventing outside users from connecting to the port that swat uses.

Don't do this if the server is exposed to the Internet without disabling the NIC that is exposed to the Internet.

Local browser configuration is a good idea as well.

service smb start

Samba needs to be running for swat to work.

SEP
Yisrael
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bejoy C Alias
Respected Contributor

Re: Redhat 9 Linux samba Swat problem

Check whether swat is actually started . 'lsof -i tcp:901' or 'netstat -nl |grep 901' . If started , try telnetting to the port 901 'telnet localhost 901' in ur linux machine and check whether it is giving a connection refused error .
Be Always Joy ......
Sakui
Frequent Advisor

Re: Redhat 9 Linux samba Swat problem

hi to all once more

I have try all the option u give but still to no avail.Trt telnetting into 901 but fail saying lost connection with foreign host.Below here is my comfiguration i copy from my editor. I try reload and restart the samba service. All u give me is working except the telnetting into port 901.It is listen to port 901. I still need ur help

# 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
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
only_from =localhost
}
Bejoy C Alias
Respected Contributor

Re: Redhat 9 Linux samba Swat problem

In ur config file it is saying only_from localhost , which means u can access swat from 127.0.0.1 only . Remove the line only_from =localhost and restart xinetd and check again.
Be Always Joy ......
Bejoy C Alias
Respected Contributor
Solution

Re: Redhat 9 Linux samba Swat problem

U had assigned points to "0 of 18 responses" . Try to assign points to them who helped u to solve ur pblms.
Be Always Joy ......