Page 1 of 1

How to change Pi password

Posted: Fri Nov 10, 2017 12:08 am
by FruitChopper
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

Code: Select all

mount -o remount,rw /
passwd pi
(enter a new password)
sync
exec /sbin/init
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

Code: Select all

sudo passwd pi
that claimed also being succesfull but when i tried to login it failed?
Any help? sorry for my noobish questions :D
Cheers!

Re: How to change Pi password

Posted: Fri Nov 10, 2017 2:52 pm
by berries11
Hello. I have the same problem.

Today I've been given my first RPi. After some googling I decided that changing password would be good practice. Everything goes fine, via terminal and/or GUI. It says "password updated successfully". I reboot the Pi and nothing. Password is still as default and therefor a security risk. No error code, no nothing. Says the password is changed when in reality it isn't. What to do?