Access denied Root login Ubuntu VM on Azure

+2 votes

Installed Ubuntu Server LTS 14.04 from Azure library on Azure VM. Logged in as standard "azureuser" created by Azure with my password. Changed root password:

sudo passwd root

If I try to login as "root":

Access denied

What do I miss? And yes, the password is correct.

Sep 27, 2018 in Azure by cloudie_crank
• 1,610 points
3,644 views

2 answers to this question.

+1 vote

by default, Ubuntu disables the root account. Since root is godmode, disabling it means that all of the hackers with automated scripts that try to break the root account are wasting their time.

I highly recommend against this. (There are many reasons, here are some: https://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root) However, the steps to do so are Over on askubuntu.com

According to that page, to unlock the root account you must execute sudo passwd -u root. To relock the root account, use sudo passwd -l root

To reiterate: this is kinda a bad idea. A better solution would be to create a new user that has unlimited permissions ONLY WITHIN THE SCOPE OF WHAT YOU REQUIRE. Root is godmode; if you screw something up too bad for you. An elevated user for your scope, on the other hand, would only be able to destroy what it has access to...not your entire system.

Hope it helps!

If you want to become Azure solution architect, then join Azure online course today.

Thank you!!

answered Sep 27, 2018 by null_void
• 3,220 points
+1 vote
I have the same issue. Any help?
answered Sep 27, 2018 by anonymous

Related Questions In Azure

0 votes
1 answer

Access SQL Server on Azure VM via SQL Server Management Studio

Following these steps might help you: Add a ...READ MORE

answered Apr 10, 2019 in Azure by Prerna
• 1,960 points
1,500 views
0 votes
1 answer

How to configure kubectl command to access remote kubernetes cluster on azure?

Found a way to access remote kubernetes ...READ MORE

answered Aug 11, 2018 in Azure by club_seesharp
• 3,450 points
10,016 views
0 votes
1 answer

How to manage access to my shared dashboard on Azure portal?

After the dashboard is published, manage who ...READ MORE

answered Dec 26, 2019 in Azure by Sirajul
• 59,230 points
2,368 views
0 votes
1 answer
0 votes
1 answer

Reset the SSH configuration on a VM in Azure.

Hi@akhtar, It is required to change the SSH ...READ MORE

answered Nov 18, 2020 in Azure by MD
• 95,460 points
1,477 views
0 votes
1 answer

How to upload a file on to Azure Blob storage without writing a code?

You can find the below tools useful ...READ MORE

answered Apr 13, 2018 in Azure by club_seesharp
• 3,450 points
1,605 views
0 votes
2 answers

Can I Login without prompt in Azure?

You can use -Credential parameter, and DPAPI to login. First, ...READ MORE

answered Aug 17, 2018 in Azure by Priyaj
• 58,020 points
6,552 views
0 votes
1 answer

Where is the storage account name and access keys on the portal?

In the image under the connection string ...READ MORE

answered May 22, 2018 in Azure by null_void
• 3,220 points
679 views
0 votes
2 answers

How can I view the deployed files in Azure?

In Visual Studio, in the window "Server ...READ MORE

answered Aug 21, 2018 in Azure by Priyaj
• 58,020 points
4,978 views
0 votes
1 answer

How to choose between Azure App Service and Azure Service Fabric?

Microsoft has created the document with a comparison for ...READ MORE

answered Jun 13, 2018 in Azure by null_void
• 3,220 points
2,362 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP