Step 1: Switch to the Root Account
Run one of the following commands to become root:
sudo -iStep 2: Change the Password for a Specific User
Use the passwd command:
passwd usernameExamples:
passwd root
passwd administratorTo change your own password:
passwd
The system will ask you to enter the password twice.
Step 3: Re-login to Verify the New Password
Log in to the server again using the newly set password to confirm it works.
Outline
