LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 01-01-2012, 07:32 AM   #1
prushik
Member
 
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, BetterLinux
Posts: 364

Rep: Reputation: 28
Can't login to buildroot based FS image


I made a FS image with buildroot for x86_64, and I have loop mounted it and chrooted into it and added users to it as well as changing the root password. I tested it and made sure i could su all around to different users and all the passwords worked, and /etc/shadow and /etc/passwd exist and look fine to me.
Now I am using qemu to boot into the fs image using a kernel that I built, and it all works great except when I get the login prompt, nothing works. no matter what I type it always tells me the password is wrong. Its really annoying because I know that I have done this before successfully.
The buildroot version I used was a snapshot from 12/30/2011. Anybody have a similar issue and/or have any tips?
 
Old 01-01-2012, 07:43 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
Hmm, I remember something similar with my distro. Are you sure the shell you use with that account is in /etc/shells? Can you login with "login" from root or is it just a console? There's also /etc/securetty in buildroot images IIRC, that can solve the problem with terminals.
 
Old 01-01-2012, 05:34 PM   #3
prushik
Member
 
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, BetterLinux
Posts: 364

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by Web31337 View Post
Hmm, I remember something similar with my distro. Are you sure the shell you use with that account is in /etc/shells? Can you login with "login" from root or is it just a console? There's also /etc/securetty in buildroot images IIRC, that can solve the problem with terminals.
hmmm... /etc/shells doesn't seem to exist. But I made sure that the account uses ash as the shell, since that's the only one available. If the default shell was the problem, shouldn't it give me another error besides "login incorrect"? I already looked at /etc/securetty, I had to add tty0 to it to get this far since opening a getty on tty1 didn't seem to do anything.
Running "login" as root in the chroot environment doesn't seem to do anything at all, it just exits without switching users or asking for a login, no output at all.
 
  


Reply

Tags
adduser, buildroot, busybox, login, uclibc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
creating the customized image of size(10MB)-using buildroot sasi1231 LinuxQuestions.org Member Intro 1 06-15-2010 07:09 AM
unable to login to buildroot sunr2007 Linux - Embedded & Single-board computer 3 04-28-2010 01:04 AM
LXer: Xen: How to Convert An Image-Based Guest To An LVM-Based Guest LXer Syndicated Linux News 0 04-19-2009 04:00 PM
What do I do with a buildroot disk image? wbuik Linux - Software 1 01-16-2009 11:15 PM
LXer: Using Xen With LVM-Based VMs Instead Of Image-Based VMs (Debian Etch) LXer Syndicated Linux News 0 01-14-2009 08:20 PM


All times are GMT -5. The time now is 08:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration