LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 12-27-2015, 11:42 AM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
How to chroot from x64 to arm?


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?
 
Old 12-27-2015, 02:41 PM   #2
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by enine View Post
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.
 
1 members found this post helpful.
Old 12-27-2015, 02:52 PM   #3
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Ahh, so the hash is the same across any machine. I guess I should have known that or KEON wouldn't work at $workplace$ (I was windows admin, not unix). I did set the PermitRootLogon in sshd, but IIRC blank passwords are disallowed as well.
 
Old 12-27-2015, 03:03 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,540

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by enine View Post
Ahh, so the hash is the same across any machine. I guess I should have known that or KEON wouldn't work at $workplace$ (I was windows admin, not unix). I did set the PermitRootLogon in sshd, but IIRC blank passwords are disallowed as well.
Code:
prisere [~] # grep -i empty /etc/ssh/sshd_config
#PermitEmptyPasswords no
 
Old 12-27-2015, 06:14 PM   #5
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I thought I read somewhere that only works for non root users but of course I can't find it now. I thought I saw that back when the permitrootlogon changed.

OT but I still need to figure out what to do lone term. I usually have my boxen with /home mounted on another physical drive so if I loose a server I can just plug the drive in my laptop and go from there. But I can't login as me and su to root if my /home is fubar. I'm trying to decide between just having a skeleton /home/me that gets overridden by the mount or script out a backdoor account whose home isn't under /home.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot to arm with qemu stormtracknole Slackware - ARM 5 06-03-2015 01:37 PM
FFMPEG for APACHE 2.4.6 (x64), PHP 5.5 (x64), MYSQL 5.6 (x64) on WINDOWS 8 (x64) Punctual Programming 3 08-07-2013 05:20 PM
I cross compile glib of arm on ubuntu 12.10 x64,it failed. peng6662001 Programming 1 03-13-2013 04:45 AM
Newbie looking to dual-boot Gloria x64 into a box already running Windows 7 x64 joshuaingram Linux - Newbie 1 12-17-2009 05:48 PM
can i run linux mandriver x64 with windows x64 bit if so wich one should i install fi malmac2000 Linux - Software 2 04-26-2006 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration