LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   can't login at text terminal. (https://www.linuxquestions.org/questions/centos-111/cant-login-at-text-terminal-4175643704/)

whansard 12-05-2018 12:19 PM

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.

ondoho 12-05-2018 01:21 PM

Quote:

Originally Posted by whansard (Post 5933658)
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?

scasey 12-05-2018 01:27 PM

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 ?

whansard 12-06-2018 12:44 AM

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.

whansard 12-06-2018 03:44 AM

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.

ondoho 12-06-2018 04:48 AM

whatever the ultimate reason (and solution) was, this message couldn't be clearer:
Quote:

Originally Posted by whansard (Post 5933896)
Code:

systemd-logind: Failed to start session scope session-1.scope: Access denied


whansard 12-06-2018 12:37 PM

i know what access denied means, but the rest means nothing to me, and i didn't find anything from googing it earlier.

ondoho 12-07-2018 01:17 AM

Quote:

Originally Posted by whansard (Post 5934136)
i didn't find anything from googing it

i beg to differ.
maybe you need a new search engine.

whansard 12-07-2018 06:55 AM

i meant i didn't find anything that looked to be of any help.


All times are GMT -5. The time now is 03:14 AM.