AnswerBun.com

pi's password is lost in every reboot

I am newbee at Pi3B.
I installed Jessie at Pi3B board.

Whenever I reboot the board, the pi’s password was changed into unknown value.
So, I delete pi’s password encryption field from /etc/password everytime and reset the password.
Then the password remains until I reboot. This is stupid.
Can anyone tell me what is wrong on the password ?

P.S. I found similar questions in this forum. But, no answers found yet.
I am not using WiFi and my ssh and internet work well after I reset the password.

To change the password for pi, I simply used $passwd command. It seems work well. About the password, user-entered passwod is eventually encrypted and wrote onto the /etc/password file. I tried raspi-config to change pi’s password, but, still the same problem.

Raspberry Pi Asked by Totoro on December 29, 2020

1 Answers

One Answer

[This is a workaround]

I'm not sure why, but the "pi" SSH password seems to be invalidated upon reboot. Eventually I gave up trying to figure out why and how and worked around this by creating my own user. With this user I can logon after reboot.

Not using the default "pi" user for SSH login may seem to be not too bad from a security perspective anyway.

Hope this helps.

PS: I added my user to the groups "sudo" to install software and "audio" to get the Pi to play sound.

Answered by Sven Gladines on December 29, 2020

Add your own answers!

Related Questions

Booting from HDMI

1  Asked on October 5, 2021 by kurtis

   

Starting Pi 4 with global_en

2  Asked on October 5, 2021

   

Peripherals not working after install of Raspbian

2  Asked on October 5, 2021 by jack_c

     

runing command on startup

5  Asked on October 5, 2021 by reaghan-pius

       

Ethernet for SSH via Offline Router, WiFi Chip for Internet

2  Asked on October 5, 2021 by logan-kuykendall

         

Pi 4 how to insert and remove usb

1  Asked on October 5, 2021 by alfred-dominic-vella

   

Stuck in a Login Loop

1  Asked on October 5, 2021

   

RFID RC522 Clone Script Unicode Error

1  Asked on October 5, 2021 by rlahey

       

Permanent IP Routing on rPi

1  Asked on October 5, 2021 by fenderbridge

   

sudo apt-get upgrade is extremely slow

2  Asked on October 5, 2021 by roman-matveev

     

trying to open .deb files in raspbian

2  Asked on October 5, 2021 by tom_nerd

 

GPIO to control 12V switch

2  Asked on October 5, 2021 by piaaw

   

Use 24-bit color Emacs theme with Raspberry Pi over SSH

2  Asked on October 5, 2021 by charliesneath

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.