Webmin

On this page 7

Webmin is an open-source, web-based system administration tool for Linux and other Unix-like operating systems that lets an administrator manage users, services, packages, firewalls and configuration files from a browser. In hosting, it sits one layer below commercial control panels: it does not sell or package hosting accounts by itself, but it gives direct graphical access to almost every subsystem of a server.

Webmin was first released in 1997, is written mainly in Perl, and runs its own lightweight web server that listens on TCP port 10000 by default. Its companion products, Virtualmin for multi-domain hosting and Usermin for ordinary users, extend the same framework toward the role that cPanel, Plesk or DirectAdmin play in commercial hosting.

How Webmin manages a server

Webmin works by reading and rewriting the native configuration files of each service rather than storing settings in a private database. When an administrator changes an Apache virtual host or a BIND zone in the browser, Webmin edits the same file that a person would edit with a text editor and then reloads the service. This design means manual edits and Webmin edits can coexist, which is the main reason experienced administrators tolerate it on production systems.

The interface is delivered by miniserv.pl, a small Perl web server that runs as root, because most administrative actions require root privileges. Functionality is split into modules, each a set of CGI scripts that understands one subsystem, such as Postfix, MySQL, cron, disk quotas or the system firewall. The table below summarizes the main architectural components.

ComponentRoleTypical location or value
miniserv.plBuilt-in web server that serves the interfacePort 10000, HTTPS
ModulesPer-service management screensOver 100 standard modules
Configuration directoryWebmin settings and module options/etc/webmin
Access control listsPer-user, per-module permissionsStored with each module config
ThemesVisual layout of the interfaceAuthentic theme by default
Action logRecord of changes made through WebminOptional file-level diffs
Core components of a Webmin installation

Because modules detect the operating system and the installed package versions, the same Webmin release can manage Debian, Ubuntu, Rocky Linux, AlmaLinux, FreeBSD and other platforms. Modules for software that is not installed are simply shown as unavailable.

Webmin, Virtualmin and Usermin

The Webmin family consists of related products that share one codebase but target different audiences. Webmin itself is a server-wide administration tool; Virtualmin adds the concept of hosted domains with their own users, databases and mail; Usermin gives non-administrative users a restricted webmail and file interface. The table clarifies who uses each product and why.

ProductPrimary userMain purposeDefault port
WebminSystem administratorManage the whole server and its services10000
VirtualminHosting administrator or resellerCreate and manage virtual servers per domain10000 (runs as a Webmin module)
UserminOrdinary Unix userWebmail, password changes, personal files20000
CloudminInfrastructure operatorManage virtual machines and containers10000 (separate installation)
Products in the Webmin family

In practice, a plain Webmin installation is not a hosting control panel. It does not create isolated hosting accounts, enforce per-customer quotas across web, mail and database services, or provide a reseller layer. Those functions come from Virtualmin, which is available in a free GPL edition and a commercial Pro edition.

How Webmin compares with hosting control panels

Webmin differs from commercial panels mainly in scope, licensing and abstraction level. Panels such as cPanel and Plesk impose an opinionated server layout and manage it end to end, whereas Webmin exposes the underlying services with relatively little abstraction. That gives more control but places more responsibility on the administrator.

ToolLicense modelAbstraction levelTypical use
WebminFree, BSD licenseLow: edits native configurationGeneral Linux administration
Virtualmin GPLFree, GPLMedium: domain-centricSelf-managed multi-site hosting
cPanelCommercial, per-account pricingHigh: fixed server layoutShared and reseller hosting
PleskCommercial, per-server editionsHigh: multi-platformAgencies and Windows or Linux hosting
CloudPanelFreeMedium: PHP and Node.js stacksSingle-purpose application servers
Webmin compared with other server management tools

A key consequence is portability of configuration. Since Webmin never takes exclusive ownership of files, an administrator can uninstall it and keep a fully working server. Removing cPanel or Plesk, by contrast, usually means rebuilding the server from scratch.

Deploying and securing Webmin

Webmin is installed from official APT or YUM repositories, which keeps it updated alongside the operating system. Because the interface runs as root and grants shell-equivalent power, securing access matters more than any other configuration step. A compromised Webmin login is equivalent to a compromised root account.

  • Restrict port 10000 to trusted IP addresses in the firewall or the built-in IP access control.
  • Replace the self-signed certificate with a trusted TLS certificate, for example from Let’s Encrypt.
  • Enable two-factor authentication, which Webmin supports with time-based one-time passwords.
  • Create separate Webmin users with module-level access control instead of sharing the root login.
  • Keep Webmin on automatic security updates through the package manager.

Many teams go further and expose Webmin only through a VPN or SSH tunnel, so that the login page is never reachable from the public internet. This single measure eliminates most automated attacks against the panel.

Limitations and known risks of Webmin

Webmin’s broad reach is also its largest attack surface. In 2019, investigators found that the build infrastructure had been compromised and that several releases contained a backdoor allowing remote command execution under certain configurations; it was tracked as CVE-2019-15107 and fixed in version 1.930. The incident shows why prompt patching and network restriction are not optional.

Other limitations are operational rather than security related. The table maps common problems to their causes and remedies.

SymptomLikely causeRemedy
Login page unreachablePort 10000 blocked by firewallOpen the port for trusted addresses only
Browser certificate warningDefault self-signed certificateInstall a trusted certificate
Module shows wrong pathsNonstandard package layoutAdjust the module configuration
Changes overwritten laterAnother tool manages the same fileUse one management tool per service
Repeated login attempts in logsInterface exposed to the internetEnable blocking and restrict access
Common Webmin problems and remedies

A frequent mistake is combining Webmin with configuration management such as Ansible or Puppet on the same files. The automation then silently reverts changes made in the browser, creating configuration drift that is hard to diagnose.

In everyday language

Webmin is like a remote control for a server that works in a web browser. Normally, someone who looks after a Linux server types commands and edits text files to change how it works. Webmin turns many of those tasks into forms, buttons and menus.

It does not hide the server or replace it with its own system. It simply edits the same settings a person would edit by hand. The key point is that whoever can log in to Webmin controls the whole server, so the login must be protected very carefully.

Seen in the real world

A small engineering consultancy runs two Ubuntu servers on a virtual private server provider: one for its website and one for internal file sharing and email. The single part-time administrator is comfortable with Linux but prefers a visual overview for routine work such as adding mail users, renewing certificates and checking disk usage.

The administrator installs Webmin from the official repository, limits port 10000 to the office IP address and the company VPN, enables two-factor authentication, and creates a second Webmin account for a colleague that can only manage mail aliases and backups. Virtualmin GPL is added on the web server to keep three client sites separated by domain.

The result is that routine tasks take minutes instead of command-line sessions, while every change is still written to standard configuration files. When the company later migrates to a larger host, the configuration is copied over directly, without depending on a proprietary panel.