How would you reset the root password on a Linux server if you did not know the password?

How would you reset the root password on a Linux server if you did not know the password?
Answer
In some situations, you may need to access an account for which you’ve lost or forgotten a password.
  1. Step 1: Boot to Recovery Mode. Restart your system. …
  2. Step 2: Drop Out to Root Shell. …
  3. Step 3: Remount the File System with Write-Permissions. …
  4. Step 4: Change the Password.
 

Tìm kiếm

Back
Top