Posts: 14
Joined: Sat Dec 16, 2017 9:26 am

Password issues

Sat Dec 16, 2017 9:29 am

pas88 wrote:
Sun Nov 19, 2017 6:08 pm
Hello all people,

I just got used a raspberry pi 2 model b, and it does not let me change the password!
But if you type mount -rw -o remount / before typing passwd pi , it will let you change your password.

Should work easily :D :) ;)
If the mount gives you an error (can't find PARTUUID), do:

Code: Select all

mount -o remount,rw /dev/mmcblk0p2 /

Then do

Code: Select all

passwd pi 
to set the password.

Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6234
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Password issues

Sat Dec 16, 2017 12:55 pm

If you're suggesting you can change the password without knowing the current one, this doesn't quite make sense. / would already be mounted rw, so that wouldn't do anything (and would need to run as root). If they're running passwd as user pi, then it would ask for the current password. If they're running it as root... well, then they already have root access.

If you're seeing that your system is mounted read only, then there's something else going on.

Return to “Beginners”