Page 275 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 275

Unit 14: File Server




          14.5 starting swat service                                                            notes

          If you need to share files or printers with Windows machines, you’re likely using Samba and
          know how to administer and configure it by editing configuration files and starting and stopping
          the daemon. However, there’s an easier, graphical way to configure your box: the Samba Web
          Administration Tool.
          SWAT allows you to set up all aspects of your Samba server through an intuitive Web interface in
          a style similar to Webmin. (In fact, if you use Webmin, you can access SWAT by going to Servers
          -> Samba Windows File Sharing and then clicking on the hammer icon for SWAT.)
          Among its interesting features, SWAT includes a wizard that can you help you configure Samba
          quickly with a basic setup. It also provides context-sensitive help for all parameters (taken directly
          from the man pages), and it lets you monitor the current state of connections and users. Since it is
          an integral part of the Samba suite, all available parameters are always up to date.

          While SWAT offers convenience, it won’t help you learn about Samba. You need to know about
          Samba before you use SWAT; if you don’t know what you’re doing, you’re likely to do more
          harm than good.
          SWAT allows you to set up all aspects of your Samba server through an intuitive Web interface
          in a style similar to Webmin.



             Did u know?  What are the uses of SWAT?

          14.5.1 Installation and Configuration

          SWAT comes with Samba, so unless you’re running a really old version of Samba, you will already
          have it installed. You can check its availability, though, by using the swat --help command. You
          can also use the following commands to find the program:
          # whereis swat swat: /usr/sbin/swat /usr/share/man/man8/swat.8.gz # find / -name swat /
          etc/webmin/samba/swat /etc/xinetd.d/swat /usr/sbin/swat /usr/share/samba/swat

          The /usr/sbin/swat file is the SWAT executable program itself. (I’m using openSUSE 10.3. In
          other distributions you might find SWAT somewhere else.) You will have the (root access only)
          /etc/webmin/samba/swat file only if you have Webmin installed; this is where Webmin keeps
          your Samba user and password. Finally, you must edit /etc/xinetd.d/swat so that SWAT will be
          available through xinetd. Working as root, edit it so it looks like this:


                 Example:
          # SWAT is the Samba Web Administration Tool.
          service swat

          {
                  port            =  901
                  groups        =  yes
                  socket_type     =  stream

                  protocol        =  tcp
                  wait            =  no
                  user            =  root




                                           LoveLy professionaL university                                   269
   270   271   272   273   274   275   276   277   278   279   280