How to Setup Ubuntu with Webmin on Azure/AWS/GCP

To install Webmin on Ubuntu or CentOS and run in any of the cloud platfors (Azure/AWS/GCP), the best way is to deploy the template from the marketplace. It setups Ubuntu or CentOS and automatically installs and fully configures Webmin for you. Click on the links below to deploy to your preferred cloud environment.

Getting Started


Once your Linux server has been deployed, the following links explain how to connect to a Linux VM:


Login In



Once connected and logged in, the following section explains how to access the Webmin portal.

Access Webmin


Once the server has booted up and you are logged in via SSH terminal, the first step is to update the miniserv.conf file


From your SSH terminal run the following command:


For Ubuntu run:

sudo nano /etc/webmin/miniserv.conf


For CentOS run:

sudo vi /etc/webmin/miniserv.conf



Then scroll down to ‘SSL=1‘ and change it to ‘SSL=0


This is so you dont receive SSL errors when accessing the Webmin portal.



For Ubuntu:

Press Ctrl+O to save and then Ctrl+X to exit the config file


For CentOS:

Press i to enter insert mode. Change ‘SSL=1‘ to ‘SSL=0‘. Then press esc to exit insert mode. Then type :X to save and exit.


Run the following command to restart the Webmin services.


sudo /etc/init.d/webmin restart


Now access the following URLs to access the Webmin portal using the servers IP:






Login using the root user and password.




Create a new root user account


If you want to create a root user and password, follow this step.


Open up your terminal and run the following commands:


Use the adduser command to add a new user to your system.


Be sure to replace username with the user that you want to create.


For Ubuntu run:


sudo adduser username


Set and confirm the new user’s password at the prompt. A strong password is highly recommended!


Follow the prompts to set the new user’s information. It is fine to accept the defaults to leave all of this information blank.



For CentOS run:
sudo adduser username

sudo passwd username


Use the usermod command to add the user to the sudo group.


For Ubuntu run:

sudo usermod -aG sudo username


For CentOS run:

sudo usermod -aG wheel username


By default, on Ubuntu, members of the sudo group have sudo privileges. And members of the wheel group for CentOS users have sudo privieges.


You can now login to Webmin URL using the new account.


Support / Documentation


Refer to Webmin documentation on using Webmin on Ubuntu:

Webmin Firewall Ports


If you have a firewall on your network/cloud infrastructure or Network Security Group in Azure/AWS/GCP you will need to make sure the following ports are open:


TCP 10000


To setup AWS firewall rules refer to – AWS Security Groups

To setup Azure firewall rules refer to – Azure Network Security Groups

To setup Google GCP firewall rules refer to – Creating GCP Firewalls

Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x