WHAT IS SAMBA?
Samba is one of those pieces of software that makes life possible within a homogeneous environment. You want Windows, Mac, and Linux to talk to one another, you use Samba. But for some, configuring Samba can be a challenge.
Thankfully, tools are available that can help nearly every skill level with the task. If you’re a newbie, there’s a tool that can help you get Samba configured. If you’re a master, there’s always the command line. But which apps are best suited for you? Let’s take a look and find out.
This is the GUI tool that all new Samba admins should be using. System-config-samba (Figure A) can be installed onto practically any Linux distribution and is incredibly easy to use. With this tool, you can configure the shares to be handed out, as well as the Samba server settings. The GUI isn’t cluttered with too many bells and whistles to confuse the user, so getting shares added is as simple as clicking the Add button and filling in a few bits of information.
Swat (Figure B) is the original GUI tool for Samba. It’s a Web-based tool that allows you to get much deeper into the configuration of Samba than any other tool. Although newbies can use it, they may quickly become intimidated by the number of options available. Once Swat is installed, you reach it by going to:
#yum install samba-swatEdit 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.
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.