suddenly the terminal won't accept me as root
#1
After a couple of years of use, my pinebook pro won't accept my root password. It's okay in the UI, and okay to sign in,  but not in the terminal. Can I either reset the entire computer or fix this problem?
  Reply
#2
(09-21-2022, 01:47 PM)hayduke Wrote: After a couple of years of use, my pinebook pro won't accept my root password. It's okay in the UI, and okay to sign in,  but not in the terminal. Can I either reset the entire computer or fix this problem?

This is not all that clear,,, can you login in sddm or lightdm or whatever as root? OR as $USER?
Since the password you type is not visible, type password in user line,, to be sure that it is correct
Then backspace it away
If sudo works,,, sudo su, then $USER password,,, then id to be sure that you are id 0
then passwd to reset (root) password (not visible, you have to type it twice)
OR
edit /etc/shadow (sudo or root),,, field seperators are ":",,, make 2nd field empty, as so
root::    .......other stuff,,,,typically 50-60 characters in 2nd field
A specific example
#cat /etc/shadow |grep root  (# prompt signifys you are root)
root:$6$cbqT.JlH5PRNQTWi$xQL9znIF6POOeWGO7TcryEnvAbDWlebudR7Tw0h8siZEpEJaSkEr29lW7nP4yrqJDL.clHzb8a3FwpsuT9.:18887:0:99999:7:::
make it
root::18887:0:99999:7:::
then root is passwordless
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Encrypted Root jaredoconnor 1 907 01-19-2023, 02:27 PM
Last Post: Cs137
  Arch Linux ARM root filesystem SKiljan 24 20,115 09-24-2022, 03:11 AM
Last Post: alexandre
  RealVNC and root password mspohr 6 8,306 10-20-2020, 06:01 AM
Last Post: regivanx
  Root access over SSH enabled by default gibby 3 6,206 06-28-2020, 01:19 PM
Last Post: Arwen
  How to boot from eMMC but have root directory on an NVME? QazTheWsx 7 9,266 06-26-2020, 08:20 AM
Last Post: QazTheWsx
  MATE Terminal copy and paste flyingscorpio 3 4,567 01-08-2020, 08:20 AM
Last Post: gandlers

Forum Jump:


Users browsing this thread: 1 Guest(s)