Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-01-2012, 07:32 AM
|
#1
|
|
Member
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, Gentoo, LFS
Posts: 311
Rep:
|
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?
|
|
|
|
01-01-2012, 07:43 AM
|
#2
|
|
Member
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Rep:
|
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.
|
|
|
|
01-01-2012, 05:34 PM
|
#3
|
|
Member
Registered: Mar 2009
Location: South Korea
Distribution: Lubuntu, Gentoo, LFS
Posts: 311
Original Poster
Rep:
|
Quote:
Originally Posted by Web31337
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|