Reset the root password.
To reset the root and user password
To reset the root password in LINUX
Log on as root directory. This can be achieved by typing “su” or “su root” at the terminal prompt.
Enter the current root password. Don’t be alarmed if as you type nothing is displayed at the prompt. This is intentional for security reasons.
Type the command “passwd” at the root prompt.
Enter your new password and repeat it at the confirmation prompt.
Log out using the “exit” command.
To change the user password in LINUX
Please follow the below steps:
1. Type the command “passwd” followed by username at the root prompt.
Please note that “user” must be replaced by your user name. To know your user name, type whoami in the terminal.
Last updated