Howto Install SWAT CentOS 4.4

  1. Install swat via yum, pastikan terlebih dahulu samba server dan samba client dah terinstall di machine CentOS anda:
  2. # yum install samba-swat

  3. Edit super daemon (inetd : di /etc/inetd.conf atau xinetd : di /etc/xinetd.d/swat), kebetulan saya menggunakan xinetd.
  4. # 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
    {
    port = 901
    socket_type = stream
    wait = no
    only_from = localhost
    user = root
    server = /usr/sbin/swat
    log_on_failure += USERID
    disable = yes
    }

    Rubah menjadi :

    # 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
    wait = no
    only_from = localhost
    user = root
    server = /usr/sbin/swat
    log_on_failure += USERID
    disable = no
    }

    Jika anda ingin menggunakan swat ini secara remote, maka caranya adalah dengan menghapus atau meng-comment (#) baris config only_from = localhost atau only_from = 127.0.0.1

  5. Silahkan di test menggunakan browser, arahkan ke http://ip_machine_swat:901, good Luck 🙂
Share it now...
Share on Facebook0Tweet about this on TwitterEmail this to someoneShare on Google+0
The following two tabs change content below.
Unix/Linux enthusiasts, good working experience with SAN, NAS, Linux, Solaris, AIX, VMWare & Graphic Design. Certified for Solaris Admin, EMC & HDS Storage.

Leave a Reply

Your email address will not be published. Required fields are marked *