LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   System booted up, but can't login as root. (https://www.linuxquestions.org/questions/linux-general-1/system-booted-up-but-cant-login-as-root-4175580940/)

andul 05-29-2016 12:29 AM

System booted up, but can't login as root.
 
I just got my system to boot up (Scientific Linux), but at the login screen I can't login as root. It doesn't even ask for a password, just says
Code:

Login incorrect
.

So what I see is:

Code:

localhost login: root
login incorrect

Then:

Code:

login: root
Login incorrect

How can I go about finding the cause? E.g. I'm referring to this post here where I should do:

Code:

init 3 ; sleep 10 ; tail /var/log/messages > ~/log
But I don't really understand this command. Doing that at runlevel 1 brought me back to the login screen, but also kept me as root, so there was some weird glitching. I'm trying to check the system logs from the login prompt, but I'm not sure how to do that from here.

I'm also doing a network boot, so I'm working with a root fs image that isn't written to upon booting. So maybe I can't check system logs after all?

andul 05-29-2016 01:15 AM

Does PAM have any dependencies in /usr/lib? Is anything in /usr/bin required for a basic boot? Those directories are both basically empty in my root fs. I was thinking of adding things to them later. For now I just need to get this boot and login working.

andul 05-29-2016 03:15 AM

Ah, the issue was actually with the login binary's libraries. I checked another, similar system that I had, and it showed that login depended on some libraries in /usr/lib, namely libcrack.so.2.8.0 and some version of libglib. My own /usr/lib in this image I'm creating was empty. After copying in libcrack* and libglib*, I was able to log in just fine.


All times are GMT -5. The time now is 02:28 AM.