How to access the sudo password in a VM

Ajmal Amir 0 Reputation points
2024-02-16T07:27:27.8666667+00:00

Hi, As you can see in the below screenshot I am trying to access the root, and any password I type doesn't accept it when I tried your instructions it denied me for the first command I paste; Can you please instruct me what to do? User's image

Screenshot 2024-02-16 at 2.18.00 AM

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
317 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Luis Arias 4,721 Reputation points
    2024-02-16T09:27:30.9133333+00:00

    Hi Ajmal Amir, It looks loke you are trying to run script with sudo in azure cloud shell. In that case that is an expected behaviour. In Azure Cloud Shell, users are set as regular users without sudo access. This is a known design limitation.

    I want to install a tool in Cloud Shell that requires sudo. Is that possible?> No. Your user account in Cloud Shell is an unprivileged account. You can't use sudo or run any command that requires elevated permissions.> https://learn.microsoft.com/en-us/azure/cloud-shell/faq-troubleshooting#bash-limitations

    If you need to perform tasks that require root or sudo access, you might need to consider using a full virtual machine in Azure instead. Let me know if this help you. Luis

    0 comments No comments