how to reset the sudo su password

Onthatile Nkoane 0 Reputation points

what is sudo su password becouse its need a password am in the middle of a course

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,841 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deepanshu katara 2,415 Reputation points


    When you use sudo su in a Linux or Unix-based system, it typically prompts for your user password, not a separate sudo su password. This is assuming that your user account has the necessary privileges to execute the sudo command.

    Here's how it usually works:

    1. You run the command sudo su in the terminal.
    2. The system prompts you to enter your user password.
    3. If your password is correct and your user account has the necessary sudo privileges, the system elevates your privileges and gives you a root shell.

    Reset sudo password for an existing user using the Azure Portal:

    Navigate to your VM -> Select Reset Password under Support + troubleshooting -> Reset your password.
    53742-image.png 53752-rootpass.gif Additional Links:
    Create an administrative/sudo user - This method is designed to help you regain access to a VM in the event that current credentials are lost or forgotten
    Reset user access - If you have lost access to root on your Linux VM, you can launch a VMAccess script to update a user's SSH key or password.
    Reset local Windows password for Azure VM offline - If you're unable to reset the password using the VM access extension.

    1 person found this answer helpful.
    0 comments No comments

  2. Deepanshu katara 2,415 Reputation points

    Following up to see if the provided answer was helpful. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments