We are all human beings and do not work like flawless creatures of artificial intelligence, we are prone to make mistakes and forget things. Although, sometimes we forget crucial information which might be essential to our daily life, like the root password of our server. For a sysadmin it can be a real disaster if s/he cannot log into the server. What can you do if this happens with you? Follow our easy step by step instructions, which will solve this matter. Save this list and you will never have to stress about the lost or forgotten password again.
First of all, if you forget the root password of your Debian system, do not panic! We have several solutions that you can execute with ease.:
Boot into Grub, select “single user” but do not press enter.
# Remount / as Read/Write mount -rw -o remount / # Change the root account password with: passwd # Change any other account password with: passwd (insert the username here) # type new password, confirm and hit enter, then reboot.
username:$1$2abCd0E or username:$1$2abCd0E:13721a:0:99999:7:::
This works flawlessly on Ubuntu 14.04.4 LTS:
We hope these tips will help you and you do not have to worry about accessing your server again. Do you have any other solutions to handle this situation? Don’t hesitate, share your tricks with us anytime!
Start the 7-day free trial with full functionality without spending a cent.
OnlineAudience is a company that offers a variety of...
We have some interesting news coming: Let’s say goodbye...