---
title: "Install Webmin on a Linux server and lock it down · CloudSat"
description: "Install Webmin from its official repository on Debian, Ubuntu, AlmaLinux or Rocky Linux, log in on port 10000, then secure it with a firewall, TLS and 2FA."
url: https://cloudsat.io/learn/install-webmin-on-linux-server
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Linux](https://cloudsat.io/learn/topic/linux)

# Install Webmin on a Linux server and lock it down

Install Webmin from its official repository on Debian, Ubuntu, AlmaLinux or Rocky Linux, log in on port 10000, then secure it with a firewall, TLS and 2FA.

CloudSat team November 18, 2026 6 min read

Webmin is a browser interface for running a Linux server. It edits the same files and drives the same tools you would use over SSH: users and groups, packages, systemd services, cron jobs, firewall rules, logs, disks and dozens of daemons. It is free and open source under a BSD-style license, written in Perl, and ships with its own small web server. What it is not: a hosting control panel. If you want hosting accounts with their own logins, look at Virtualmin, which is built on top of Webmin. This guide installs Webmin the supported way, then spends most of its time on the part people skip, which is keeping a root-level web login away from attackers.

## Webmin, Usermin or Virtualmin

| Tool | Who logs in | What it does |
| --- | --- | --- |
| Webmin | The server administrator | System administration: services, packages, users, firewall, files |
| Usermin | Ordinary users | Webmail, password changes, personal file access |
| Virtualmin | Hosting admin and account owners | Hosting panel on top of Webmin: domains, mail, databases, per-account logins |

Install Webmin alone when one person or a small team runs the server and wants a GUI for tasks they do rarely. Do not add it to a server that already runs cPanel or DirectAdmin: two tools editing the same Apache, mail and DNS configuration will fight.

## Install from the official repository

Webmin's maintainers publish a script that adds their package repository and its signing key, after which Webmin installs and updates through your normal package manager. It supports RHEL, AlmaLinux, Rocky Linux, Oracle Linux, CentOS Stream and Fedora, plus Debian, Ubuntu and Kali. The script needs `curl`, which some minimal images lack.

### Debian and Ubuntu

```bash
sudo apt update && sudo apt install -y curl
curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
less webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh
sudo apt-get install --install-recommends webmin
```

### AlmaLinux, Rocky Linux and Fedora

```bash
sudo dnf install -y curl
curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh
sudo dnf install webmin
```

Reading the script before running it (the `less` step) takes a minute and is a good habit for anything you pipe into a root shell. Webmin is not in the default AlmaLinux, Rocky or EPEL repositories, so `dnf install webmin` finds nothing until the script has run. When the install finishes, check the service:

```bash
systemctl status webmin
```

On CloudSat, the [Webmin one-click app](https://cloudsat.io/apps/deploy-webmin) gives you a new server with Webmin already installed, which skips this section but not the hardening below.

## First login

Webmin listens on port 10000 over HTTPS with a self-signed certificate, so the first visit shows a browser warning:

```text
https://203.0.113.10:10000
```

Who can log in depends on the system. Root works with its Unix password, if root has one. On Debian and Ubuntu packages, any user who can run all commands through `sudo` can also sign in with their own password, which is the normal route on Ubuntu, where root has no password by default. If neither works, for example on a cloud image that only accepts SSH keys, set a Webmin-only password for the `root` Webmin user. This does not change the Unix root password:

```bash
sudo /usr/share/webmin/changepass.pl /etc/webmin root 'a-long-unique-password'   # Debian, Ubuntu
sudo /usr/libexec/webmin/changepass.pl /etc/webmin root 'a-long-unique-password' # RHEL family
```

Prefix the command with a space if your shell skips such lines in its history, or clear the history afterward, since the password is visible on the command line.

## Lock it down

A Webmin login is a root shell with a friendlier face. Webmin has had serious remote code execution flaws in its past, including CVE-2019-15107, so the safest login page is one the internet cannot reach.

### Keep port 10000 off the public internet

The strongest option is to leave port 10000 closed and reach Webmin through an SSH tunnel. From your own computer:

```bash
ssh -L 10000:localhost:10000 admin@203.0.113.10
```

While that session is open, browse to `https://localhost:10000`. Nothing but SSH is exposed. To go further, open **Webmin > Webmin Configuration > Ports and Addresses** and make it listen on `127.0.0.1` only.

If you need direct access, allow only your own address. With ufw on Debian or Ubuntu:

```bash
sudo ufw allow from 198.51.100.7 to any port 10000 proto tcp
```

With firewalld on the RHEL family:

```bash
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="198.51.100.7/32" port protocol="tcp" port="10000" accept'
sudo firewall-cmd --reload
```

**Webmin Configuration > IP Access Control** adds a second filter inside Webmin itself. Use both: the firewall stops packets, and the access list catches a firewall rule you later loosen by mistake.

### Replace the self-signed certificate

If the server has a DNS name, **Webmin Configuration > SSL Encryption** has a Let's Encrypt tab that requests and renews a trusted certificate. The certificate does not reduce your exposure, but it removes the habit of clicking through browser warnings, which is how people end up trusting the wrong host.

### Turn on two-factor authentication

Webmin supports time-based one-time codes from any authenticator app. It needs the Perl module `Authen::OATH`, packaged as `libauthen-oath-perl` on Debian and Ubuntu:

```bash
sudo apt install libauthen-oath-perl
```

Then enable it under **Webmin Configuration > Two-Factor Authentication**, pick the authenticator provider, and enroll each Webmin user. Test a login in a private browser window before you close your working session.

### Update it like any other package

Because the install came from a repository, Webmin updates with the rest of the system: `sudo apt upgrade` or `sudo dnf upgrade`. If you use unattended upgrades on Debian or Ubuntu, remember that third-party repositories are often not covered by the default settings, so check that Webmin is actually included.

## What to use it for

Webmin earns its place on tasks you do a few times a year and would otherwise look up every time:

- **System > Bootup and Shutdown**: enable, disable and restart systemd services, and read their status.
- **System > Scheduled Cron Jobs**: see every user's crontab in one list.
- **System > Software Packages**: search, install and update packages.
- **Networking > Linux Firewall** or **FirewallD**: review rules before you change them.
- **Tools > File Manager** and **Tools > Terminal**: edit a config file or run a command from the browser when SSH is not handy.

For anything you repeat often, a script or a configuration management tool beats clicking. Webmin is still a decent teacher: many modules map directly to one configuration file, and with file-change logging turned on under **Webmin Configuration > Logging**, the **Webmin Actions Log** module shows the diff of every change it made.

## FAQ

### Is Webmin free for commercial use?

Yes. Webmin is open source under a BSD-style license, with no paid edition. Virtualmin has a free GPL edition and a paid Pro edition with extra features.

### How do I change the Webmin port?

Go to **Webmin Configuration > Ports and Addresses**, set the new port, save, then update your firewall rules. A different port cuts down on automated scans but is not protection by itself.

### Can one Webmin manage several servers?

Yes, within limits. The **Webmin Servers Index** module lists other machines running Webmin, and the cluster modules can push users, packages or cron jobs to all of them at once. Each server still runs its own Webmin, so each one needs the same lockdown described above.

### How do I remove Webmin?

Run `sudo apt purge webmin` or `sudo dnf remove webmin`, then delete the repository file the setup script added under `/etc/apt/sources.list.d/` or `/etc/yum.repos.d/`. Close port 10000 in your firewall.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Linux](https://cloudsat.io/learn/topic/linux)

- [Install cPanel and WHM on a VPS (and fix license errors)](https://cloudsat.io/learn/install-cpanel-whm-on-a-vps): Linux Install cPanel and WHM on a VPS (and fix license errors) 7 min read
- [Install DirectAdmin on a VPS: license, setup and first login](https://cloudsat.io/learn/install-directadmin-on-a-vps): Linux Install DirectAdmin on a VPS: license, setup and first login 6 min read
- [What to install on a new VPS: a baseline, then the workload](https://cloudsat.io/learn/what-to-install-on-a-new-vps): Cloud and hosting What to install on a new VPS: a baseline, then the workload 6 min read
- [Install Plesk Obsidian on a Linux or Windows server](https://cloudsat.io/learn/install-plesk-obsidian-on-linux-or-windows): Linux Install Plesk Obsidian on a Linux or Windows server 5 min read
