{"id":18405,"date":"2026-09-29T23:33:50","date_gmt":"2026-09-29T20:33:50","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/uninstall-webmin-linux\/"},"modified":"2026-11-22T18:53:05","modified_gmt":"2026-11-22T15:53:05","password":"","slug":"uninstall-webmin-linux","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/uninstall-webmin-linux\/","title":{"rendered":"Removing Webmin from a Linux Server: The Uninstall Script or Package Manager, and Closing Port 10000"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>The command<\/b>If Webmin was installed with the official script, run <code>\/etc\/webmin\/uninstall.sh<\/code>. If it was installed as a package, use <code>dnf remove webmin<\/code> on AlmaLinux and Rocky, or <code>apt remove --purge webmin<\/code> on Ubuntu and Debian. Then confirm port 10000 is no longer open.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18405-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-webmin-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-webmin-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-webmin-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-srv-webmin-en.mp4<\/a><\/video><\/div><\/div>\n<p>Webmin is a browser-based admin panel for Linux servers on port 10000. You may find it on a server you took over from someone else, or installed it to try and then moved to cPanel or another panel. Any root-level admin panel you do not use is an extra door that should be closed.<\/p>\n<h2>First, find out how it was installed<\/h2>\n<pre class=\"hkb-code\">ls \/etc\/webmin\/uninstall.sh   # present? installed by script\nrpm -q webmin                 # AlmaLinux \/ Rocky\ndpkg -l webmin                # Ubuntu \/ Debian<\/pre>\n<h2>Removing it<\/h2>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-sv-t-webmin.webp\" alt=\"Commands to remove Webmin by install method and confirm port 10000 is closed\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>Installed with<\/th>\n<th>Remove with<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>The official Webmin script<\/td>\n<td><code>\/etc\/webmin\/uninstall.sh<\/code>, then answer yes<\/td>\n<\/tr>\n<tr>\n<td>An RPM package<\/td>\n<td><code>dnf remove webmin<\/code><\/td>\n<\/tr>\n<tr>\n<td>A DEB package<\/td>\n<td><code>apt remove --purge webmin<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>After removing it<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Check the port<\/b> <code>ss -tlnp | grep 10000<\/code> should show nothing.<\/li>\n<li><b>Close it in the firewall<\/b> remove 10000 from TCP_IN in CSF or from the VPS panel firewall. See <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/open-port-csf-firewall-whm\/\">opening and closing ports<\/a>.<\/li>\n<li><b>Remove the Webmin repository<\/b> if its repo was added, delete its file from <code>\/etc\/yum.repos.d\/<\/code> or <code>\/etc\/apt\/sources.list.d\/<\/code>.<\/li>\n<li><b>Leftover configuration<\/b> <code>\/etc\/webmin<\/code> may remain after a package removal. Move or delete it once you are sure.<\/li>\n<\/ol>\n<div class=\"hkb-note warn\">Do not install Webmin on a server running cPanel. Both edit the same system files, and the result is conflicting settings that are hard to trace.<\/div>\n<h2>An alternative to Webmin?<\/h2>\n<p>For servers without a panel, SSH plus the VPS control panel is usually enough. If you want a hosting panel, see <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/best-vps-control-panels\/\">the best VPS control panels<\/a>, including free ones such as HestiaCP and CloudPanel.<\/p>\n<h2>Why remove it if you do not use it?<\/h2>\n<p>Webmin is useful for anyone who manages and updates it, but it runs as root and listens on a port open to the internet. It has had serious vulnerabilities in the past, and unpatched copies were targets for automated attacks. A forgotten admin panel is a door nobody watches. The simple rule: any program running as root that you do not use, remove it.<\/p>\n<p>If you want to keep it, keep it updated, allow its port only from your own address in the firewall, and turn on its two-factor authentication.<\/p>\n<h2>Webmin questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Does removing Webmin delete my sites or databases?<\/summary>\n<p>No. It removes the panel only; services you managed through it stay as they are.<\/p>\n<\/details>\n<details>\n<summary>Virtualmin is there too. Do I remove it?<\/summary>\n<p>Virtualmin runs on top of Webmin. Remove it first in its own way, then Webmin, bearing in mind it affects site configuration more.<\/p>\n<\/details>\n<details>\n<summary>Port 10000 is still open<\/summary>\n<p>Make sure the webmin service has really stopped, and that no other program uses the port.<\/p>\n<\/details>\n<details>\n<summary>Do I need to reboot after removing it?<\/summary>\n<p>No.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/open-port-csf-firewall-whm\/\">Opening a Port in the CSF Firewall: From WHM or csf.conf, Plus the Common cPanel Ports<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-connect-to-a-server-via-ssh\/\">Connecting to Your Server Remotely with SSH: From Windows, macOS and Linux, and SSH Keys Instead of Passwords<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/5-tips-to-secure-your-cpanel-server\/\">Securing a cPanel Server: A Practical 10-Step Checklist in Order, from Updates to Backups<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/best-vps-control-panels\/\">Best VPS Control Panels for 2026: A Complete Free vs Paid Comparison<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/servers-without-control-panel\/\">All server guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The commandIf Webmin was installed with the official script, run \/etc\/webmin\/uninstall.sh. If it was installed as a package, use dnf remove webmin on AlmaLinux and Rocky, or apt remove &#8211;purge webmin on Ubuntu and Debian. Then confirm port 10000 is no longer open. Webmin is a browser-based admin panel for Linux servers on port 10000. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21301,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2733],"doc_tag":[],"class_list":["post-18405","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-servers-without-control-panel"],"year_month":"2026-11","word_count":548,"total_views":"17","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.hyyat.com\/en\/author\/admin\/"},"doc_category_info":[{"term_name":"Servers Without a Control Panel","term_url":"https:\/\/www.hyyat.com\/en\/kb\/servers-without-control-panel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18405"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18405\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/21301"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18405"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18405"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}