09-01-2020, 08:14 AM
Well, if you have a bootable SD & can become root.....
I had to do some thing like this in the past week
I don't know what $USER:!: means, the !,,, but when I made it $USER::<other-stuff>,
it all worked
So, boot SD, mount emmc, cd emmc/etc, become root, copy for backup, edit emmc/etc/shadow
root will be ,,, root:<hashedPassword>:<otherStuff>
change to root::<otherStuff> (no spaces)
then root will be passwordless
You can also do that to $USER ($USER=login name)
Be smart, make a copy before editing
I had to do some thing like this in the past week
I don't know what $USER:!: means, the !,,, but when I made it $USER::<other-stuff>,
it all worked
So, boot SD, mount emmc, cd emmc/etc, become root, copy for backup, edit emmc/etc/shadow
root will be ,,, root:<hashedPassword>:<otherStuff>
change to root::<otherStuff> (no spaces)
then root will be passwordless
You can also do that to $USER ($USER=login name)
Be smart, make a copy before editing