Advertisements
Install samba swat as
#yum install samba-swat
Edit and change the xinetd configuration file for samba
[root@server ~]# cat /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
{
port = 901
socket_type = stream //means tcp based
wait = no
only_from = 127.0.0.1 192.168.137.1 //If not commented can be accessible only from localhost. increase security. or you can add hosts ips.
user = root //In order to bind privillaged port 901
server = /usr/sbin/swat
log_on_failure += USERID
disable = no //Change the 'yes' to 'no'.
}
[root@server ~]#
Now restart xinetd service
#service xinetd restart
Take any browser and give following url in address bar.
http://IP_of_samba_server:port_number_of_swat[901]
http://192.168.0.100:901
No comments:
Post a Comment
Be nice. That's all.