LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2016, 12:29 AM   #1
andul
LQ Newbie
 
Registered: Nov 2015
Distribution: Debian Wheezy
Posts: 20

Rep: Reputation: Disabled
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?

Last edited by andul; 05-29-2016 at 12:34 AM.
 
Old 05-29-2016, 01:15 AM   #2
andul
LQ Newbie
 
Registered: Nov 2015
Distribution: Debian Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-29-2016, 03:15 AM   #3
andul
LQ Newbie
 
Registered: Nov 2015
Distribution: Debian Wheezy
Posts: 20

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
login



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remount root partition on system booted from external usb drive Frizi Linux - Newbie 8 01-19-2015 04:29 PM
Login as root in Linux system mike89 Linux - Newbie 17 10-20-2013 04:51 PM
LXer: Login as root on the Ubuntu System LXer Syndicated Linux News 0 05-13-2011 08:00 PM
Can not get my root file system booted from NAND priyadarshan Linux - Software 3 12-10-2010 03:18 AM
root login through system call(s) hifun Linux - Kernel 3 06-19-2009 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:51 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