Skip to content
Ubuntu Linux

How to Install Usermin on Ubuntu 24.04

Richard
Written by
Richard
Updated 4 min read
How to Install Usermin on Ubuntu 24.04
How to Install Usermin on Ubuntu 24.04

Usermin is a web-based control panel that lets you manage your own server account on Ubuntu 24.04 without needing full administrator rights. It gives you a simple browser page for everyday jobs like checking email, changing your password, and managing files. This keeps your server safer because fewer people need top-level access.

Webmin handles deep system setup for administrators. Usermin covers the standard user accounts. You can install Usermin on Ubuntu 24.04 in a few minutes from the command line. You need a user with sudo rights for the install and a working internet connection on the server.

⚡ Quick Answer

Install Usermin on Ubuntu 24.04 by installing its prerequisites with sudo apt install python3 apt-show-versions shared-mime-info unzip libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl, then downloading the package with curl and running sudo apt install on the.deb file. Open it at http://your-server:20000 in a browser.

Advertisement

Install required packages

Before installing Usermin on Ubuntu 24.04, prepare a few essential packages. These are the tools needed to fetch and install the Usermin package. Installing them first avoids dependency errors later.

Run the command below in your terminal to install them. Enter your password if sudo asks for it. When the command finishes without errors, you are ready for the next step.

Advertisement
🐧Bash / Shell
sudo apt install python3 apt-show-versions shared-mime-info unzip libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

Once those packages are in place, download the Usermin installer package.

Download and install Usermin

Usermin installation on Ubuntu 24.04 starts by downloading the official setup package straight to your server from the command line. You then finish the setup by running a package manager command in the terminal. That command puts all the necessary files in place, so you can open the Usermin web interface in your browser.

📝Good to KnowRun the command below to download the latest version. The file is saved in the folder you are currently in, so note where that is. You will need to run the install command from the same folder.
💻Code
curl -L -O https://www.webmin.com/download/deb/usermin-current.deb

If the download command fails with a “command not found” message, `curl` is missing. Install it with the command here, then repeat the download: [sudo apt install curl]

After downloading, install Usermin with the command shown below. Run it in the folder that holds the downloaded file. The package manager unpacks Usermin, sets it up, and starts the service. When it finishes, Usermin is already running with its default settings.

Next, tighten access before you use the panel. Open the configuration file for editing by running `sudo nano /etc/usermin/config` in your terminal. You need sudo because the file belongs to root. The file opens in the nano editor and shows a list of settings, one per line.

🐧Bash / Shell
sudo nano /etc/usermin/miniserv.conf
⚠️WarningInside this file, add a new line specifying the IP addresses you want to allow access from, and a separate line to deny root login.

An example appears below. Put each setting on its own line and use your own addresses, not the sample ones. If you allow only certain addresses and later cannot reach the panel, check that your current IP is on the list.

💻Code
# add a new line at the end to allow IP addresses
allow=127.0.0.1 192.168.0.0/24

# prohibit login as root account
denyusers=root

After making these changes, save and exit the file. In nano, press Ctrl+O, then Enter to save. Press Ctrl+X to exit. To undo the change later, open the file again, delete the lines you added, and restart Usermin.

Restart Usermin with the command provided below. The new settings do not take effect until the service restarts. If the command returns to the prompt with no error, the restart worked.

🐧Bash / Shell
sudo systemctl restart usermin

Reach the control panel by entering your server hostname or IP address followed by port 20000 in a web browser (for example, http://example.com:20000). If the page does not load, check that your firewall allows TCP port 20000. Also check that your IP address is not blocked by the allow list you set earlier. If your browser redirects you to https or warns about the certificate, that is normal for a self-signed certificate. You can continue past the warning if you trust the server.

http://example.com:20000

Users who are admins or can run the sudo command can log in on the login page. Enter the username and password of the server account. Root login is blocked if you added the deny line earlier. After a successful login, you should see the Usermin dashboard.

Usermin login page
Usermin login page

Start managing your server. Use the menu on the left to open the available modules, such as mail, password change, and file tools. The modules you see depend on how Usermin is set up on your server, so your list may differ from another system’s.

Usermin dashboard
Usermin dashboard

That completes the setup process. Usermin is installed, restricted to the addresses you chose, and reachable on port 20000.

Conclusion:

  • Usermin provides an efficient way for end-users to manage their mail and services without full server access.
  • The installation process involves installing necessary packages and configuring Usermin settings.
  • Ensure that specific IP addresses are allowed and that root access is denied to enhance security.
  • Access Usermin through the server’s hostname or IP followed by port 20000.
  • With Usermin, users can easily manage their accounts, change passwords, and utilize services like email.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

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