MRKAVANA (mrkavana@gmail.com) - www.facebook.com/kavanathai

Jul 18, 2011

How to install and configure Samba-swat in rhel5 linux / centos

### SWAT INSTALLATION ### For rhel5/ centos5
If you have a yum server configured, run the following command. else find the rpm and install.

#yum install samba-swat

Open the following swat configuration file
#vi /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
{
disable = no //Change the 'yes' to 'no'.
port = 901
socket_type = stream //means tcp based
wait = no
# only_from = 127.0.0.1 //If not commented can be accessible only from localhost. increase security
user = root //In order to bind privillaged port 901 
server = /usr/sbin/swat
log_on_failure += USERID
:wq //Save and quit

#service xinetd restart //restart the service

### SWAT INTERFACE ###
accessing in browser

http://IP_of_samba_server:port_number_of_swat[901]
an example

http://192.168.0.21:901


No comments:

Post a Comment