FruitChopper
Posts: 19
Joined: Thu Nov 09, 2017 10:28 pm
Location: Amsterdam, Netherlands

How to change Pi password

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

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!
Attachments
IMG_2682.JPG
login screen
IMG_2682.JPG (37.53 KiB) Viewed 348 times
IMG_2683.JPG
IMG_2683.JPG (26.61 KiB) Viewed 348 times

berries11
Posts: 1
Joined: Fri Nov 10, 2017 2:45 pm

Re: How to change Pi password

Fri Nov 10, 2017 2:52 pm

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?

Return to “Beginners”