LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 12-05-2018, 12:19 PM   #1
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
can't login at text terminal.


can't login at all on cent os 7. this is from the text terminal. there is no dm running. if i login as root, or any user, it bounces back to the login screen immediately. if i enter an incorrect password, it waits 2 seconds before bouncing back. i can run stuff by chrooting into it from another distribution, and update software, but i don't know what is wrong with it.
 
Old 12-05-2018, 01:21 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by whansard View Post
can't login at all on cent os 7. this is from the text terminal. there is no dm running. if i login as root, or any user, it bounces back to the login screen immediately. if i enter an incorrect password, it waits 2 seconds before bouncing back. i can run stuff by chrooting into it from another distribution, and update software, but i don't know what is wrong with it.

what do the logs say?
 
Old 12-05-2018, 01:27 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
By "text terminal" do you mean the console? The keyboard and monitor plugged into the computer?
By "login screen" do you mean the login prompt? Looks something like this
Code:
localhost login:
Besides checking the logs, what do the users you're trying look like in /etc/passwd ?
 
Old 12-06-2018, 12:44 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Original Poster
Rep: Reputation: 65
i had already skimmed the log files, and saw nothing interesting. i had already looked at /etc/passwd also making sure there there were no "nologin" entries, and that root, and the other user were there. I skimmed the logs again, and found this.
Code:
Dec  5 11:58:56 localhost systemd: Startup finished in 1.703s (kernel) + 2.418s (initrd) + 12.131s (userspace) = 16.253s.
Dec  5 11:59:00 localhost systemd-logind: Failed to start user slice user-0.slice, ignoring: Access denied (org.freedesktop.DBus.Error.AccessDenied)
Dec  5 11:59:00 localhost systemd-logind: Failed to start session scope session-1.scope: Access denied
Dec  5 11:59:00 localhost systemd: getty@tty1.service has no holdoff time, scheduling restart.
Dec  5 11:59:00 localhost systemd: Stopped Getty on tty1.
Dec  5 11:59:00 localhost systemd: Started Getty on tty1.
Dec  5 11:59:07 localhost systemd: Received SIGINT.
i already made sure the passwords were ok from a chroot from another booted distribution. i hadn't booted this centos 7 since june, so i can't remember what i might have done that caused this.
 
Old 12-06-2018, 03:44 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Original Poster
Rep: Reputation: 65
ok nevermind. it is an initramfs problem. 6 months ago i moved a bunch of stuff around on this hard drive. cent os was on sdb14, and now it's at sdb6. so the device numbers and uuid is wrong in all the initramfs'. i was able to login booting a custom made kernel from lilo. now i just have to fix several other issues.
 
Old 12-06-2018, 04:48 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
whatever the ultimate reason (and solution) was, this message couldn't be clearer:
Quote:
Originally Posted by whansard View Post
Code:
systemd-logind: Failed to start session scope session-1.scope: Access denied
 
Old 12-06-2018, 12:37 PM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Original Poster
Rep: Reputation: 65
i know what access denied means, but the rest means nothing to me, and i didn't find anything from googing it earlier.
 
Old 12-07-2018, 01:17 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by whansard View Post
i didn't find anything from googing it
i beg to differ.
maybe you need a new search engine.
 
Old 12-07-2018, 06:55 AM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Original Poster
Rep: Reputation: 65
i meant i didn't find anything that looked to be of any help.
 
  


Reply



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
[SOLVED] Redirecting terminal output to text file leads to corrupted text file mariovrn Linux - Newbie 5 11-30-2011 07:21 AM
How to copy text from vmware from linux text terminal to word document in windows? meandsushil Linux - Newbie 40 01-12-2011 06:06 AM
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 08:35 PM
How to parse text file to a set text column width and output to new text file? jsstevenson Programming 12 04-23-2008 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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