Unable to login due to the password change
#3
(07-23-2020, 04:31 PM)pine_usr Wrote: Hello everyone,
I just have a quick question. Just got my new Pine64 UBports edition phone and after booting the phone first time I was prompted to enter a screen lock pin, which I did and chose 4 digits pin. After I boot into the UBPorts system, played around, opened terminal and went ahead and changed password for the main user by passwd command. After a while the screen was locked and in order to unlock it, you get a prompt to enter password. The initial 4 digit pin is not accepted, since I changed password. But, there is no way to enter new password (letters and digits) as the prompt only has digits option. There is no way to enter a new password which contains letters. I wasn't aware that the new password for the user will also apply as a screen unlock PIN. Now, I am stuck with no way to enter the system and need to reset it. What is the fastest way to factory reset UBports without full reinstall? Pressing Up Volume + Power Button get me "Installing update" screen which never disappear. In regular Androind phone you login to a bootloader and just factory reset system. Could anyone suggest how to factory reset UT system instead of full reinstall? Also, why screen lock pin is the same as a user password?
Thank you.

Hey @pine_usr ,

I did the same thing!

Easy fix if it is an sdcard OS:

  1. 1st turn off phone.
  2. Take out sdcard.
  3. insert/mount sdcard for editing
  4. backup /etc/shadow by renaming it /etc/shadow.bak or something similar
  5. move /etc/shadow- to /etc/shadow to replace (/etc/shadow- is a backup of original)
  6. put sdcard back into phone
  7. login with original default number

    Outside that you can try to do the same remotely logging in if not running off sdcard.
- RTP

"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki


[ Pinephone Original | Pinetab v1 / v2 Enjoyer ]


Linux Device Privacy / Security Playlist





Messages In This Thread
RE: Unable to login due to the password change - by RTP - 07-28-2020, 06:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fix for online account login Nooblife 1 3,072 07-11-2021, 03:30 AM
Last Post: Uturn
  Unable to make a phone call bingo600 4 7,936 07-23-2020, 10:18 AM
Last Post: israel
  SSH wont connect [Permission denied (publickey,password)]. LMalilil 3 6,244 06-23-2020, 12:27 PM
Last Post: LMalilil

Forum Jump:


Users browsing this thread: 5 Guest(s)