If I change the password of user pi (rpi 3b, NOOBS, Raspbian Jessie), it takes affect only until shutting down or logging off. After shutting down or logging off, the new password is no longer current.

I was using SSH and VNC for a couple hours before failing to be able to connect any longer. When I was local again, I was able to change the password and get VNC working again, but only until the next reboot or login.

What would cause this problem?

  • Is it possible to name user to rpi 3b, Raspbian Jessie? According to me it is not possible. Since Linux do not allows you to name a directory with a white space(Actually every user is a directory under home directory).
    – Arun K S
    Jul 7 '17 at 10:29
  • The stuff in brackets was just context, not part of the user name.
    – David
    Jul 7 '17 at 11:02

It was malware, due to me creating a vulnerability (SSH, lax pi password). I found the offending lines in rc.local and elsewhere. I expect the safest option to clean up will be re-imaging my rpi's SD card.

  • 1
    Definitely re-install from a clean image. Lessons learned! Always secure your system before connecting to the outside.
    – bobstro
    Jan 6 '18 at 7:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.