If you are person like me.
Who keeps on playing arround gadgets.
I have managed to lock my raspbeery pi lot of times.
but some time just sudoing does not work if root is locked.
One othe the method i found usefull for me is given below.
Login to raspi via ssh or VNC using the "pi" credentials and the elevate yourself as super user "sudo" and run "passwd" to change the password
.
Output:
Who keeps on playing arround gadgets.
I have managed to lock my raspbeery pi lot of times.
but some time just sudoing does not work if root is locked.
One othe the method i found usefull for me is given below.
Login to raspi via ssh or VNC using the "pi" credentials and the elevate yourself as super user "sudo" and run "passwd" to change the password
.
# sudo -i
# passwd root
Output:
root@raspi-quad:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
I did this when i could not update my system as apt-get update && apt-get upgrade stopped working for me. anffolloing above procedure