How do i get the sudo passwd

Sunday Joseph 0 Reputation points
2024-08-11T18:17:19+00:00

I don't know my super admin password on the ubuntu OS i set.

This question is related to the following Learning Module

Azure | Azure Training
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Abiola Akinbade 29,405 Reputation points Volunteer Moderator
    2024-08-11T19:39:25.7766667+00:00

    Hello Sunday Joseph,

    Thanks for your question.

    If you are using an Azure VM:

    Go to the Azure portal and go to your Virtual Machine.

    Select Reset password and update the password

    This will reset the password for the specified user, allowing you to log in with the new credentials.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    0 comments No comments

  2. AmaranS 7,270 Reputation points Microsoft External Staff
    2024-08-13T03:48:01.65+00:00

    HiSunday Joseph,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    1. Activate a new sandbox and create a new VM as mentioned in the Exercise (step1 at Create a Linux VM and install Nginx).

    2. After step 1, please make a note of Public IP address that was assigned to VM.

    1. Before moving into step2, connect to the newly created VM using ssh command in cloud shell. Please run the following command to connect VM:

    ssh azureuser@<VM public ip address>

    nginx1

    4. The system gives you to prompt Yes/No. Enter Yes.

    5.  Please run the following commands one after another in cloud shell.

    · sudo apt-get update

    · sudo apt-get install -y nginx

    · echo "<html><body><h2>Welcome to Azure! My name is $(hostname).</h2></body></html>" | sudo tee -a /var/www/html/index.html.

    nginx2

    . Exit 

    After completing the step 5, continue your module from step2 of Task 1: Create a Linux virtual machine and install Nginx at module 3 of 14.

    Added additionally reference thread link:

    https://learn.microsoft.com/en-us/answers/questions/1475058/how-to-find-the-password

    https://learn.microsoft.com/en-us/answers/questions/1040339/azure-cloud-shell-sandbox-sudo-password

    https://learn.microsoft.com/en-us/answers/questions/1162433/sudo-password-for-azure-sandbox

    If the issue persists, please reach out to us and we'll be glad to assist you.

    I hope the information provided has been helpful to you! If so, please accept the answer by clicking the "Accept Answer" and "Upvote" on the post.

    We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Q&A.

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.