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
126 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.

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 in Azure by Prerna
• 1,940 points
43 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 10, 2018 in Azure by club_seesharp
• 3,450 points
2,238 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
89 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
• 56,160 points
1,015 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 21, 2018 in Azure by null_void
• 3,220 points
12 views
0 votes
2 answers

How can I enable Ping(ICMP) on Azure?

I had a similar problem. Needed to ...READ MORE

answered Aug 17, 2018 in Azure by Priyaj
• 56,160 points
1,987 views
0 votes
1 answer

Is there a way to get ERROR details on Azure website?

You have two options: First, you can turn ...READ MORE

answered May 25, 2018 in Azure by club_seesharp
• 3,450 points
80 views
0 votes
1 answer

How can i upload to Azure Blob storage with Shared Access key?

For GetBlobReferenceFromServer to work, the blob must be present ...READ MORE

answered Jun 12, 2018 in Azure by club_seesharp
• 3,450 points
608 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
• 56,160 points
191 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
150 views