[SOLVED] Problems with logging in after finishing the 7.2 LFS book
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problems with logging in after finishing the 7.2 LFS book
Hi all,
I've just finished to compile my own LFS. I've rebooted and it's all ok until I try to log in: every time after I insert the root credentials and it tolds me the last login date and that there are no new emails, it promts:
Code:
cannot run command `/bin/bash': No such file or directory
and asks me again to log in.
What can I do? the LFS version I've read is the 7.2
Hi all,
I've just finished to compile my own LFS. I've rebooted and it's all ok until I try to log in: every time after I insert the root credentials and it tolds me the last login date and that there are no new emails, it promts:
Code:
cannot run command `/bin/bash': No such file or directory
and asks me again to log in.
What can I do? the LFS version I've read is the 7.2
The shell to start when logging in is defined in /etc/passwd and seems to point at /bin/bash.
- Do you have a correct root entry in /etc/passwd?
- Does /bin/bash exist?
The shell to start when logging in is defined in /etc/passwd and seems to point at /bin/bash.
- Do you have a correct root entry in /etc/passwd?
- Does /bin/bash exist?
/bin/bash file exists and I think that the /etc/passwd file it's ok:
@spiky: Thanks for replies spiky, but I think that the problem is in the shadow package because also if I try to run 'su' by an "chrooted" system I get the same error! So I've tried to re-compile and re-install shadow but I haven't not got results... Other suggestions?
Last edited by giuliom_95; 02-17-2013 at 11:50 AM.
Thanks for replies spiky, but I think that the problem is in the shadow package because also if I try to run 'su' by an "chrooted" system I get the same error!
No, the problem is that bash cannot be found and/or executed.
Yes the /bin/bash file is executable (-rwxr-xr-x) and the output of suggested commands are:
Code:
root:/bin# ./bash --version
GNU bash, version 4.2.36(1)-release (i686-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Code:
root:/bin# file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, not stripped
Just to be sure: You cannot log into LFS, so am I assuming correctly that all the commands shown above are done on your host and from within the chrooted environment?
I'm asking because this might look strange (not 100% sure):
Quote:
root:/bin# file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.25, not stripped
LFS 7.2 uses kernel/header version 3.5.2 and I would expect this to show and not 2.6.25. But like I said: Not 100% sure about that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.