{"id":10898,"date":"2024-11-08T09:54:50","date_gmt":"2024-11-08T09:54:50","guid":{"rendered":"https:\/\/www.ssdnodes.com\/?p=10898"},"modified":"2025-05-15T15:28:40","modified_gmt":"2025-05-15T15:28:40","slug":"install-webmin-on-ubuntu-24-04-and-use-it","status":"publish","type":"post","link":"https:\/\/www.ssdnodes.com\/blog\/install-webmin-on-ubuntu-24-04-and-use-it\/","title":{"rendered":"Simple Guide &#8211; How to Install Webmin on Ubuntu 24.04 and How to Use it"},"content":{"rendered":"<p>In this article, I\u2019ll walk you through how to install Webmin on Ubuntu 24.04, and how to manage your server through a web browser in a few simple steps.<\/p>\n<p><a href=\"https:\/\/webmin.com\/\" target=\"_blank\" rel=\"noopener\">Webmin<\/a> is an open-source <a href=\"https:\/\/www.ssdnodes.com\/blog\/tools-to-manage-multiple-linux-servers-free\/\">web-based server management tool<\/a> that gives you control over your Linux server without much hassle. Instead of using the command line for every task, Webmin provides a friendly web interface that lets you handle everything from user accounts and disk quotas to DNS settings, services, and much more. All from your trusty web browser.<\/p>\n<p>One of Webmin\u2019s best features is its modular design, where you can add more tools as you need more control.<\/p>\n<p>If your app is running behind a <a href=\"https:\/\/www.ssdnodes.com\/blog\/installing-lamp-on-ubuntu-22-04-lts-jammy-jellyfish\/\">LAMP<\/a> stack or you\u2019re using WordPress with <a href=\"https:\/\/www.ssdnodes.com\/blog\/how-to-install-wordpress-with-lemp-and-mariadb-on-ubuntu\/\">LEMP<\/a>, then Webmin lets you manage Apache, MySQL, and PHP, and much more.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10974 size-full\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/How-to-Install-Webmin-on-Ubuntu-24.04-Article.jpg\" alt=\"Install Webmin on Ubuntu 24.04\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/How-to-Install-Webmin-on-Ubuntu-24.04-Article.jpg 600w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/How-to-Install-Webmin-on-Ubuntu-24.04-Article-300x200.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<ul>\n<li>An Ubuntu 24.04 server with root access or a <code>sudo<\/code> user. If you haven't noticed, we offer extremely reliable Ubuntu servers at the globe's absolute lowest price. Take a look at our <a href=\"https:\/\/www.ssdnodes.com\/cheap-vps-hosting\/\">offerings<\/a> and prepare for your mind to be blown \ud83e\udd2f.<\/li>\n<li>Access your sever via SSH, check out <a href=\"https:\/\/www.ssdnodes.com\/blog\/tutorial-setting-up-and-securing-ssh-based-authentication\/\">How to access your server using SSH<\/a> for instructions.<\/li>\n<\/ul>\n<h3><strong>Note<\/strong><\/h3>\n<blockquote><p>If you want to install Webmin in minutes without the hassle, try our 1-click Webmin application. Just choose one of our <a href=\"https:\/\/www.ssdnodes.com\/\">server<\/a>, click <strong>Customize Your Own Server<\/strong>, go to the <strong>Apps<\/strong> tab under <strong>Select Server Image<\/strong>, and select <strong>Webmin<\/strong>\u2014it\u2019s that simple! On the other hand, if you want to do things yourself, keep reading.<\/p><\/blockquote>\n<h2>Step 1: Update the Package Cache and Install the Required Packages<\/h2>\n<p>Before installing Webmin, update your Ubuntu 24.04 package list:<\/p>\n<pre><code class=\"language-yaml\">sudo apt update<\/code><\/pre>\n<p>Next, install <code>curl<\/code> and <code>gnupg2<\/code>:<\/p>\n<pre><code class=\"language-yaml\">sudo apt install gnupg2 curl -y<\/code><\/pre>\n<p>Curl will be used to download the Webmin repository script, and <code>gnupg2<\/code> is used to verify Webmin signatures.<\/p>\n<h2><strong>Step 2: Install Webmin on Ubuntu 24.04<\/strong><\/h2>\n<p>In short, to install Webmin on Ubuntu 24.04, you'll first add the Webmin repository that will enable you to install the Webmin packages and update them with <code>apt<\/code>. Then you'll update the package cache, and finally you'll use the <code>apt install webmin<\/code> command.<\/p>\n<h3>Download the Webmin Repository Setup Script<\/h3>\n<p>First, download the setup script and run it:<\/p>\n<pre><code>curl -o setup-repos.sh https:\/\/raw.githubusercontent.com\/webmin\/webmin\/master\/setup-repos.sh\r\n\r\nsh setup-repos.sh<\/code><\/pre>\n<p>You\u2019ll receive an output similar to this:<\/p>\n<pre><code class=\"language-bash\">  Downloading Webmin key ..\r\n  .. done\r\n  Installing Webmin key ..\r\n  .. done\r\n  Setting up Webmin repository ..\r\n  .. done\r\n  Cleaning repository metadata ..\r\n  .. done\r\n  Downloading repository metadata ..\r\n  .. done\r\nWebmin package can now be installed using apt-get install --install-recommends webmin command.<\/code><\/pre>\n<p>Next, perform an update:<\/p>\n<pre><code>sudo apt update<\/code><\/pre>\n<p>You can now install Webmin using <code>apt<\/code> .<\/p>\n<h3>Install Webmin<\/h3>\n<p>First, run the following command:<\/p>\n<pre><code>sudo apt install webmin --install-recommends<\/code><\/pre>\n<p>This installs both Webmin and additional recommended packages.<\/p>\n<p>Once the installation finishes, check that the <code>webmin<\/code> service status is active:<\/p>\n<pre><code>sudo systemctl status webmin<\/code><\/pre>\n<p>You should see an output similar to the following:<\/p>\n<pre><code>\u25cf webmin.service - Webmin server daemon\r\n     Loaded: loaded (\/usr\/lib\/syst\r\nemd\/system\/webmin.service; enabled; preset: enabled)\r\n     Active: active (running) since Tue 2024-10-01 22:56:09 UTC; 2min 0s ago\r\n    Process: 14327 ExecStart=\/usr\/share\/webmin\/miniserv.pl \/etc\/webmin\/miniserv.conf (code=exited, status=\r\n0\/SUCCESS)\r\n   Main PID: 14328 (miniserv.pl)\r\n      Tasks: 1 (limit: 9445)\r\n     Memory: 126.1M (peak: 203.4M)\r\n        CPU: 5.517s\r\n     CGroup: \/system.slice\/webmin.service\r\n             \u2514\u250014328 \/usr\/bin\/perl \/usr\/share\/webmin\/miniserv.pl \/etc\/webmin\/miniserv.conf<\/code><\/pre>\n<p><strong>Note:<\/strong> Webmin is accessible via port <code>10000<\/code>. You might need to allow this port through your firewall if it is not already enabled:<\/p>\n<pre><code>sudo ufw allow 10000\/tcp<\/code><\/pre>\n<p><strong><em>Warning:<\/em> You should be extremely careful with your security practices. It is best to allow only a few trusted IP addresses or IP ranges to access your Webmin control panel.<\/strong><\/p>\n<p>With Webmin installed, use your browser to visit port <code>10000<\/code> on your domain or IP address:<\/p>\n<pre><code>https:\/\/ip_address_or_domain:10000<\/code><\/pre>\n<p>Initially, your SSL certificate will be self-signed. Your browser will show a <strong>\"Not Secure\"<\/strong> or <strong>\"Connection is not private\"<\/strong> error, because the connection to your server isn't recognized as secure, and the certificate is not from a trusted source such as Let\u2019s Encrypt:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10928\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Connection_not_private.webp\" alt=\"Connection not Private Webmin Ubuntu 24.04\" width=\"549\" height=\"422\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Connection_not_private.webp 660w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Connection_not_private-300x230.webp 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/p>\n<p>Don\u2019t worry, we\u2019ll fix this later and install a Let\u2019s Encrypt certificate to secure Webmin.<\/p>\n<p>For now, just click the <strong>Advanced<\/strong> button or <strong>More information<\/strong> on your browser, and choose to proceed.<\/p>\n<p>You\u2019ll be moved to the Webmin Login page:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10929\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Login.webp\" alt=\"Webmin Login Screen\" width=\"440\" height=\"382\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Login.webp 477w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Login-300x260.webp 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/p>\n<h3>Webmin\u2019s Default Password<\/h3>\n<p>The default password of Webmin is the same as your Unix username\u2019s password. You can also use the root account of your server with <code>root<\/code> as a username with the root\u2019s password. Once you enter your credentials, you\u2019ll be moved to the dashboard.<\/p>\n<h3>Webmin Dashboard<\/h3>\n<p>Here is the Webmin dashboard:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10930\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard-1024x366.webp\" alt=\"Webmin Dashboard\" width=\"727\" height=\"260\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard-1024x366.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard-300x107.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard-768x274.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard-1536x548.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Dashboard.webp 1580w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>In the navigation bar on the left, you have the following items:<\/p>\n<ul>\n<li><strong>Webmin<\/strong>: The home page or dashboard of the Webmin interface.<\/li>\n<li><strong>System<\/strong>: Options for managing core system settings, users, and services.<\/li>\n<li><strong>Servers<\/strong>: Provides access to configuration and management of various server applications.<\/li>\n<li><strong>Tools<\/strong>: Utility functions like a file manager, terminal, and system monitoring tools.<\/li>\n<li><strong>Networking<\/strong>: Options for configuring network interfaces, firewalls, and other network-related settings.<\/li>\n<li><strong>Hardware<\/strong>: Gives you options to manage hardware components, drivers, and related configurations.<\/li>\n<li><strong>Cluster<\/strong>: Tools for managing multiple servers in a clustered environment.<\/li>\n<li><strong>Unused-Modules<\/strong>: Modules that are available but not currently active or configured in your Webmin installation.<\/li>\n<\/ul>\n<p>With this, you have Webmin installed on your Ubuntu 24.04 server and ready to be used.<\/p>\n<h3><strong>Reader Alert!<\/strong><\/h3>\n<blockquote><p>To avoid all these steps and install Webmin in minutes, you can use our tried and tested 1-click <strong>Webmin<\/strong> application. Just choose a <a href=\"https:\/\/www.ssdnodes.com\/\">server<\/a>, click <strong>Customize Your Own Server<\/strong>, under <strong>Select Server<\/strong> <strong>Image<\/strong> go to the <strong>Apps<\/strong> tab, then choose <strong>Webmin<\/strong>. This will set up Webmin in minutes!<\/p><\/blockquote>\n<h2><a style=\"font-size: 16px; background-image: url('img\/anchor.gif');\" name=\"step3\"><\/a>Step 3: Securing Webmin with an SSL Certificate from Let\u2019s Encrypt<\/h2>\n<p>Webmin manages sensitive infrastructure on your Ubuntu server, and it is important to secure it using HTTPS. To do this, follow these steps to set up a Let\u2019s Encrypt SSL certificate.<\/p>\n<h3>Set up a Domain Name<\/h3>\n<ol>\n<li>On the left-hand menu, click <strong>Networking<\/strong>, then <strong>Network Configuration<\/strong>.<\/li>\n<li>Click on <strong>Hostname and DNS Client<\/strong>.<\/li>\n<li>Fill in the <strong>Hostname<\/strong> field with your domain name, such as <code>example.com<\/code> or <code>www.example.com<\/code>.<\/li>\n<li>Click <strong>Save<\/strong><\/li>\n<\/ol>\n<h3>Install Let's Encrypt on Webmin using Certbot<\/h3>\n<p>With your domain setup done, connect to your Ubuntu 24.04 server via SSH:<\/p>\n<pre><code class=\"language-bash\">ssh you_user@your_ip_or_domain<\/code><\/pre>\n<p>Open port <code>80<\/code> for Let\u2019s Encrypt validation:<\/p>\n<pre><code class=\"language-bash\">sudo ufw allow 80\/tcp<\/code><\/pre>\n<p>Next, install the Certbot Let\u2019s Encrypt client for requesting SSL certificates:<\/p>\n<pre><code class=\"language-bash\">sudo apt install certbot<\/code><\/pre>\n<p>Once installed, use Certbot to generate a Let\u2019s Encrypt certificate:<\/p>\n<pre><code class=\"language-bash\">sudo certbot certonly --standalone -d webmin.your_domain.com -m your_email@example.com --agree-tos<\/code><\/pre>\n<p>Replace\u00a0<code>webmin.your_domain.com<\/code>\u00a0with your domain and\u00a0<code>your_email@example.com<\/code>\u00a0with your email address.<\/p>\n<p>In the output, you\u2019ll have two paths. One for the certificate file and one for the private key. Copy them and save them for the next step:<\/p>\n<pre><code class=\"language-bash\">Certificate is saved at: \/etc\/letsencrypt\/live\/webmin.your_domain.com\/fullchain.pem\r\nKey is saved at:         \/etc\/letsencrypt\/live\/webmin.your_domain.com\/privkey.pem<\/code><\/pre>\n<p>Now, merge the two files into one <code>.pem<\/code> file to make managing this certificate easier:<\/p>\n<pre>sudo cat \/etc\/letsencrypt\/live\/webmin.example.com\/fullchain.pem \/etc\/letsencrypt\/live\/webmin.example.com\/privkey.pem | sudo tee \/etc\/webmin\/<code>letsencrypt<\/code>.pem &gt; \/dev\/null<\/pre>\n<p>Here, we\u2019ve merged both the certificate file and the private key into one <code>letsencrypt.pem<\/code> file.<\/p>\n<p>Move this certificate file to the Webmin configuration directory:<\/p>\n<pre><code class=\"language-bash\">sudo mv letsencrypt.pem \/etc\/webmin\/<\/code><\/pre>\n<p>Install <code>nano<\/code> if you haven\u2019t already:<\/p>\n<pre><code class=\"language-bash\">sudo apt install nano<\/code><\/pre>\n<p>Open the Webmin server configuration file:<\/p>\n<pre><code class=\"language-bash\">sudo nano \/etc\/webmin\/miniserv.conf<\/code><\/pre>\n<p>Replace the following line:<\/p>\n<pre><code class=\"language-bash\">keyfile=\/etc\/webmin\/miniserv.pem<\/code><\/pre>\n<p>With this:<\/p>\n<pre><code class=\"language-bash\">keyfile=\/etc\/webmin\/letsencrypt.pem<\/code><\/pre>\n<p>Save and close the file.<\/p>\n<p>Restart Webmin:<\/p>\n<pre><code class=\"language-bash\">sudo systemctl restart webmin<\/code><\/pre>\n<p>Wait for a few seconds while Webmin reboots, then refresh the page. You'll see that the Let's Encrypt certificate is enabled and your connection is secured through HTTPS.<\/p>\n<h2>Step 4: Web Server Management with Webmin<\/h2>\n<p>In this step you\u2019ll learn how to manage your server with Webmin.<\/p>\n<h3>How to Change the Webmin Port<\/h3>\n<p>In Webmin, to change the default <code>10000<\/code> port, go to <strong>Webmin<\/strong> on the left-hand menu, then:<\/p>\n<ol>\n<li>Click <strong>Ports and Addresses<\/strong>.<\/li>\n<li>Under <strong>Listen on port<\/strong>, change the <code>10000<\/code> default port to <code>443<\/code> HTTPS port.<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<li>You\u2019ll be redirected to the new URL at <code>https:\/your_domain.com<\/code>.<\/li>\n<\/ol>\n<h3>Access the Terminal from Webmin<\/h3>\n<p>To access the Terminal directly from Webmin:<\/p>\n<ol>\n<li>Go to <strong>Tools<\/strong> on the left-hand menu.<\/li>\n<li>Click <strong>Terminal<\/strong>.<\/li>\n<li>You\u2019ll have access to a terminal emulator directly from your browser.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10931\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal-1024x498.webp\" alt=\"Webmin Terminal\" width=\"716\" height=\"348\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal-1024x498.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal-300x146.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal-768x374.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal-1536x747.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Terminal.webp 1589w\" sizes=\"auto, (max-width: 716px) 100vw, 716px\" \/><\/p>\n<h3>Install Packages on Ubuntu with Webmin<\/h3>\n<p>To use Webmin for installing packages on Ubuntu:<\/p>\n<ol>\n<li>Click <strong>System<\/strong> then <strong>Software Packages<\/strong>.<\/li>\n<li>Click the <strong>Install a new package<\/strong> tab, then choose the <strong>Package from APT<\/strong> radio button.<\/li>\n<li>Type in the package name you want to install, then click <strong>Install<\/strong>.<\/li>\n<\/ol>\n<p>The package dependencies will be displayed in a table.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10932\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_Deps-1024x253.webp\" alt=\"Use Webmin to Install Package Dependencies\" width=\"751\" height=\"186\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_Deps-1024x253.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_Deps-300x74.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_Deps-768x190.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_Deps.webp 1317w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/p>\n<p>Verify the dependencies list, then click <strong>Install Now<\/strong>.<\/p>\n<p>Your package should be installed after a few minutes:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10933\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done-1024x405.webp\" alt=\"Package Installed\" width=\"808\" height=\"320\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done-1024x405.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done-300x119.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done-768x304.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done-1536x608.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Install_Package_done.webp 1599w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><\/p>\n<h3>Access the File Manager<\/h3>\n<p>To manage files on your Ubuntu server using Webmin, follow these steps:<\/p>\n<ol>\n<li>Click <strong>Tools<\/strong> on the left-hand menu.<\/li>\n<li>Click on <strong>File Manager<\/strong>.<\/li>\n<\/ol>\n<p>You\u2019ll be moved to a full-fledged file management UI where you can create, edit, and delete files and directories. Additionally, you can use the <strong>Bookmarks<\/strong> button to bookmark a folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10934\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_File_Manager-1024x590.webp\" alt=\"Webmin File Manager\" width=\"689\" height=\"397\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_File_Manager-1024x590.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_File_Manager-300x173.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_File_Manager-768x442.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_File_Manager.webp 1292w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/p>\n<h3>Update Software Packages on Webmin<\/h3>\n<p>It is important to always keep your Ubuntu 24.04 packages up-to-date. To do this on Webmin:<\/p>\n<ol>\n<li>Click <strong>System<\/strong> on the sidebar.<\/li>\n<li>Click <strong>Software Package Updates<\/strong>.<\/li>\n<li>You\u2019ll get a list of all the packages with available updates. Check and uncheck packages to be updated or select everything to be updated at once by clicking <strong>Select all<\/strong>.<\/li>\n<li>Click <strong>Update Selected Packages<\/strong>.<\/li>\n<li>You\u2019ll see a list off all selected packages, click <strong>Install Now<\/strong> to perform the update<strong>.<\/strong><\/li>\n<\/ol>\n<h3>Managing Unix Users and Groups with Webmin<\/h3>\n<p>A Unix user is a standard user on your server who:<\/p>\n<ul>\n<li>Connects via SSH or FTP.<\/li>\n<li>Owns specific files and folders.<\/li>\n<li>Has a personal home directory.<\/li>\n<\/ul>\n<p>In this section, we\u2019ll create a new user with a dedicated home directory. Additionally, we\u2019ll grant this user administrative privileges by adding them to the <code>sudo<\/code> group. We\u2019ll refer to the user as <code>example_user<\/code>, but feel free to choose any username.<\/p>\n<ol>\n<li><strong>Open Webmin's User Management Module<\/strong>\n<ul>\n<li>On the left-hand menu, click on <strong>System<\/strong>.<\/li>\n<li>Then, select <strong>Users and Groups<\/strong>.Here, you can see a list of existing system users under <strong>Local Users<\/strong> and system groups under <strong>Local Groups<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Create a New User<\/strong>\n<ul>\n<li>In the <strong>Local Users<\/strong> table, click <strong>Create a new user<\/strong> to access the <strong>Create User<\/strong> page.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Fill in User Details<\/strong>\n<ul>\n<li><strong>Username<\/strong>: Enter <code>example_user<\/code> (or your preferred username).<\/li>\n<li><strong>User ID<\/strong>: Select <strong>Automatic<\/strong>.<\/li>\n<li><strong>Real Name<\/strong>: Provide the full name or a descriptive title, like <strong>Testing User<\/strong> or <strong>Admin User<\/strong>.<\/li>\n<li><strong>Home Directory<\/strong>: Set to <strong>Automatic<\/strong>.<\/li>\n<li><strong>Shell<\/strong>: Choose <code>\/bin\/bash<\/code>.<\/li>\n<li><strong>Password<\/strong>: Select <strong>Normal password<\/strong> and enter a strong password for this user.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set User Groups<\/strong> in the <strong>Group Membership<\/strong> section\n<ul>\n<li><strong>Primary Group<\/strong>: Choose <strong>New group with same name as user<\/strong>.<\/li>\n<li><strong>Secondary Groups<\/strong>: Click on <strong>sudo<\/strong> in the <strong>All groups<\/strong> list and use the right arrow to move it to the <strong>In groups<\/strong> list. This grants the user <code>sudo<\/code> privileges.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10935\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User-1024x376.webp\" alt=\"Creating a Unix User on Webmin\" width=\"833\" height=\"306\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User-1024x376.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User-300x110.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User-768x282.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User-1536x564.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Create_Unix_User.webp 1574w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/p>\n<p>Finally, click <strong>Create<\/strong> to finish setting up the new user.<\/p>\n<p>With this, a new user called <code>example_user<\/code> with administrative (<code>sudo<\/code>) privileges has been created on your Ubuntu server.<\/p>\n<p>With managing Unix users out of the way, we can now move onto managing Webmin users.<\/p>\n<h3>Manage Webmin Users<\/h3>\n<p>In addition to creating Unix users, Webmin allows you to create dedicated Webmin user accounts. With Webmin user accounts, you can give others limited access to specific features of your server through the Webmin interface. Meaning you can control what each user can do.<\/p>\n<p>For example, you can allow a user to access only the <strong>Software Package Updates<\/strong> module. Permissions can also be fine-tuned within modules, such as allowing a user to view the list of available updates but not apply them.<\/p>\n<p>Webmin offers two main types of users:<\/p>\n<ol>\n<li><strong>Safe Users<\/strong>:These users can only access non-critical modules, limiting their ability to make significant changes to the system.<\/li>\n<li><strong>Privileged Users<\/strong>:Privileged users are granted broader access, including system-critical modules and full control over the server. You can customize the level of access and control for each user.<\/li>\n<\/ol>\n<h3>How to Create a Safe Webmin User Account<\/h3>\n<p>Follow these steps to set up a new safe Webmin account and configure it according to your needs.<\/p>\n<ol>\n<li>Click <strong>Webmin<\/strong> in the left menu, then <strong>Webmin Users<\/strong>.<\/li>\n<li>Select <strong>Create a new safe user<\/strong>.<\/li>\n<li>Enter a <strong>Username<\/strong> and set a strong password.<\/li>\n<li>Check <strong>Force change at next login<\/strong> to ensure the user sets a new password.<\/li>\n<li>Assign a <strong>Real Name<\/strong> (like \"Update Viewer\").<\/li>\n<li>Under <strong>Security and limits options<\/strong>, set the <strong>Inactivity logout time<\/strong> (e.g., 30 minutes) and <strong>Minimum password length<\/strong>.<\/li>\n<li>In <strong>Available Webmin modules<\/strong>, choose only the specific modules the user should access, like <strong>System and Server Status<\/strong>.<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ol>\n<p>The new user will only see the assigned modules when they log in, ensuring restricted access.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10936\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users-1024x392.webp\" alt=\"Webmin Users\" width=\"763\" height=\"292\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users-1024x392.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users-300x115.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users-768x294.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users-1536x588.webp 1536w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_Users.webp 1592w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<h3>Creating a Privileged Webmin User<\/h3>\n<p>To create a new privileged user with custom access:<\/p>\n<ol>\n<li><strong>Go to Webmin Users<\/strong>\n<ul>\n<li>Click <strong>Create a new privileged user<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Enter User Information<\/strong>\n<ul>\n<li><strong>Username<\/strong>: Choose a unique username.<\/li>\n<li><strong>Password<\/strong>: Set a strong password.<\/li>\n<li><strong>Force Password Change<\/strong>: Enable the option <strong>Force change at next login<\/strong> for added security.<\/li>\n<li><strong>Real Name<\/strong>: Set a descriptive name like \"Monitoring User\" or \"Backup Admin\" for easy identification.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Set Security and Access Restrictions<\/strong>\n<ul>\n<li>Open the <strong>Security and limits options<\/strong> section.<\/li>\n<li><strong>Inactivity Logout Time<\/strong>: Set to <strong>30 minutes<\/strong> to automatically log out inactive users (modify this as necessary).<\/li>\n<li><strong>Minimum Password Length<\/strong>: Set to <strong>15 characters<\/strong> to enforce strong password policies.<\/li>\n<li><strong>Restrict Access by IP\/Time<\/strong> (optional): Restrict access to specific IP addresses or time periods if you want.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Assign Webmin Modules<\/strong>\n<ul>\n<li>In the <strong>Available Webmin Modules<\/strong> section, select the modules the user should have access to. You can select all or pick specific modules based on the user\u2019s role. For example, you can give a system admin full access, or maybe restrict an intern to non-critical modules like monitoring.<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ol>\n<p>Once the account is created, click the red <strong>Logout<\/strong> icon at the bottom of the left-hand menu. Then log in with the new user and check their privileges.<\/p>\n<h3>Manage SSH Access<\/h3>\n<p>To manage SSH access on Webmin, navigate to <strong>Servers<\/strong> then click <strong>SSH Server.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10937\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access-1024x383.webp\" alt=\"Webmin SSH Access\" width=\"671\" height=\"251\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access-1024x383.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access-300x112.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access-768x287.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access.webp 1029w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/p>\n<p>Here you can manage SSH configuration such as passwords, SSH keys, and access control.<\/p>\n<p>For example, to control the users that can connect to the server via SSH and restrict others, open <strong>Access Control<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10938\" src=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access_Control-1024x269.webp\" alt=\"Webmin SSH Access Control\" width=\"715\" height=\"188\" srcset=\"https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access_Control-1024x269.webp 1024w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access_Control-300x79.webp 300w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access_Control-768x202.webp 768w, https:\/\/www.ssdnodes.com\/wp-content\/uploads\/2024\/10\/Webmin_SSH_Access_Control.webp 1311w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/p>\n<p>In this page, you can allow or deny SSH access for certain users or members of groups as you like.<\/p>\n<h2>Step 5: Uninstall Webmin<\/h2>\n<p>To uninstall Webmin, run <code>sudo apt remove --purge webmin<\/code> to remove the package and its configuration files. Then, use <code>sudo apt autoremove<\/code> to clean up any unnecessary dependencies.<\/p>\n<p>If you want to delete remaining Webmin files, manually remove the Webmin directory with <code>sudo rm -rf \/etc\/webmin<\/code>. This will fully uninstall Webmin from your system.<\/p>\n<h2>Conclusion<\/h2>\n<p>You now have Webmin installed on your Ubuntu 24.04 server secured with HTTPS through Let\u2019s Encrypt SSL certificates. You\u2019ve also learned how to use Webmin for web server management and sysadmin tasks.<\/p>\n<p>You can manage your server files, users, and networks directly from your browser. Webmin\u2019s modular design also allows you to install other tools and add them to your web management toolkit. For more on how to use Webmin to manage your Ubuntu server, check out the official\u00a0<a href=\"https:\/\/webmin.com\/docs\/\" target=\"_blank\" rel=\"noopener\">documentation<\/a>.<\/p>\n<h2>FAQ<\/h2>\n<h3>Can I use Webmin on Windows?<\/h3>\n<p>Webmin is actually designed for Unix-based systems like Linux, but you can use it on Windows through a virtual machine or WSL (Windows Subsystem for Linux). Direct installation isn\u2019t supported natively on Windows, so using Linux in a virtualized environment is the way to go.<\/p>\n<h3>Webmin vs cPanel?<\/h3>\n<p>Webmin is free and open-source with a modular design and good server management tools in mind. cPanel on the other hand, is a paid control panel, and is mostly used by web hosting providers.<\/p>\n<h3>What\u2019s a good alternative to Webmin?<\/h3>\n<p>Some great alternatives to Webmin are <strong>ISPConfig<\/strong>, <strong>Ajenti<\/strong>, and <strong>Cockpit<\/strong>. These tools also offer web-based interfaces for managing servers, each with its unique features. Depending on your needs.<\/p>\n<h3>Where can I find Webmin logs?<\/h3>\n<p>Webmin logs are located in <code>\/var\/webmin\/miniserv.log<\/code>. This log file contains details about Webmin actions, user activity, and system errors. If you're troubleshooting or want to monitor activity, this is a key file to check!<\/p>\n<h3>How does Webmin compare to cPanel and Plesk?<\/h3>\n<p>Webmin, cPanel, and Plesk all serve as server control panels, but differ in focus. Webmin is free and flexible, great for advanced users. cPanel is paid, but somewhat user-friendly and popular for web hosting. Plesk combines ease of use with strong multi-platform support, making it great for web developers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Master Server Management with Ease: How to Install and Use Webmin on Ubuntu 24.04.<\/p>\n","protected":false},"author":19,"featured_media":10972,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[18,30],"tags":[],"class_list":["post-10898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/10898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/comments?post=10898"}],"version-history":[{"count":11,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/10898\/revisions"}],"predecessor-version":[{"id":12917,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/posts\/10898\/revisions\/12917"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media\/10972"}],"wp:attachment":[{"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/media?parent=10898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/categories?post=10898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ssdnodes.com\/wp-json\/wp\/v2\/tags?post=10898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}