Quote:
Originally Posted by enine
I haven't messed around with my Beaglebone black in a while so I did a little searching and got it booting under a Slackware minirootfs but I can't login. Mounting the SD card in my laptop I tried to chroot so I could set a root password doesn't seem to work due to the different architecture. I can edit shadow and blank it out but then can't get in due to ssh not allowing a blank password. Any easy way to set the root password or add a new user so I can put the card back in and boot from it and get in?
|
Sure, copy the password hash from /etc/shadow on the machine you do know the password for and paste it into etc/shadow of the file system you've mounted; save it; umount and boot.
Are you sure that it's not a case that the sshd config won't let you login as root?
Look at etc/ssh/sshd_config in the file system first and let yourself login if it's not configured to do so.