Skip to content
Home » Using SWAT

Using SWAT

Using SWAT (Samba Web Administration Tool)


1. Introduction

SWAT (Samba Web Administration Tool) is a web-based interface used to configure and manage Samba servers easily through a browser.

👉 Instead of editing smb.conf manually, SWAT provides a GUI-based management system.


2. Why Use SWAT?

  • Easy configuration using browser
  • No need to remember complex commands
  • Ideal for beginners
  • Real-time Samba configuration
  • Automatic syntax handling

3. Features of SWAT

  • Configure Samba shares
  • Manage users and passwords
  • Start/stop Samba services
  • Edit configuration file (smb.conf)
  • View logs

4. Installing SWAT


4.1 On Ubuntu / Debian

sudo apt update
sudo apt install swat

4.2 On RHEL / CentOS

sudo yum install samba-swat

5. Enabling SWAT Service

SWAT works via xinetd service.

Edit Configuration

sudo vi /etc/xinetd.d/swat

Change:

disable = no

Restart xinetd

sudo systemctl restart xinetd

6. Accessing SWAT Interface

Open browser:

http://localhost:901

Login using:

  • Username: root
  • Password: root password

7. SWAT Interface Sections


1. HOME

  • Documentation and help

2. GLOBALS

  • Configure global Samba settings
  • Workgroup, security mode, etc.

3. SHARES

  • Create and manage shared folders

Example:

  • Share name
  • Path
  • Permissions

4. PRINTERS

  • Configure printer sharing

5. STATUS

  • Start/stop/restart Samba services

6. VIEW

  • View current configuration

7. PASSWORD

  • Manage Samba users

8. Creating a Share Using SWAT

Steps:

  1. Open SHARES tab
  2. Enter share name
  3. Click Create Share
  4. Set:
    • Path (/srv/samba/shared)
    • Permissions
  5. Save changes

9. Managing Samba Services via SWAT

  • Go to STATUS tab
  • Click:
    • Start
    • Stop
    • Restart

10. Advantages of SWAT

  • User-friendly interface
  • Quick configuration
  • Reduces manual errors
  • Suitable for beginners

11. Disadvantages of SWAT

  • Not installed by default
  • Security risks if exposed publicly
  • Deprecated in modern systems
  • Limited advanced features

12. Security Considerations

  • Use SWAT only on local network
  • Disable after use
  • Avoid remote exposure
  • Use firewall restrictions

13. Real-World Example

  • Small office:
    • Admin uses SWAT to configure shared folders
    • No need for command-line expertise

14. Conclusion

SWAT provides a simple and effective web-based interface for Samba administration. Although modern systems prefer manual configuration or other tools, SWAT is still useful for learning and basic Samba management.