How to change Pi password
Posted: Fri Nov 10, 2017 12:08 am
So today i installed PiVPN and everything worked fine, i could connect etc etc. But when i tried to login using my phone on ssh i couldnt login anymore (strange). So i rebooted my Pi and suddenly there was a login screen ive never seen before.
I know the default password= raspberry
So i googled: how to change password pi and this came up everywhere.
Edit cmdline.txt to include (at the end) init=/bin/sh.
Then enter the following code
As you can see in the picture it says the password has been updated, but after that i try to login it still doesnt work....
At the top it says Can't access tty: job control turned off, i have no clue what that means.
Ive also tried to change it with my root account that claimed also being succesfull but when i tried to login it failed?
Any help? sorry for my noobish questions
Cheers!
I know the default password= raspberry
So i googled: how to change password pi and this came up everywhere.
Edit cmdline.txt to include (at the end) init=/bin/sh.
Then enter the following code
Code: Select all
mount -o remount,rw /
passwd pi
(enter a new password)
sync
exec /sbin/initAt the top it says Can't access tty: job control turned off, i have no clue what that means.
Ive also tried to change it with my root account
Code: Select all
sudo passwd piAny help? sorry for my noobish questions
Cheers!