LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 7 - users unable to login, root can login to GUI (https://www.linuxquestions.org/questions/linux-newbie-8/centos-7-users-unable-to-login-root-can-login-to-gui-4175571461/)

triley555 02-04-2016 05:54 PM

CentOS 7 - users unable to login, root can login to GUI
 
I'm new to Linux so forgive me if this is easy.

An end-user brought me a CentOS 7 machine today that had been used by one of his contractors. Apparently, no user but root can login to the GUI. Regular users cannot. After entering the users' password, the system grinds for a few seconds, then simply returns to the login prompt. I logged in as root and created a new user and the same thing happens. No one but root can login. I looked in "messages" and /var/log but nothing is jumping out at me as to why this is happening.

Can someone point me in the right direction?

Thank you for any information you can provide.

Habitual 02-04-2016 05:57 PM

Welcome to LQ!

Login as root and check the permissions on /home/ with
Code:

ls -al /home
and
Code:

stat --printf "a %n \n" /home/*
and post the results here.

Erm, that may not "help" since new users have the same issue...
Curious, but I don't have an immediate clue, or answer.

Does /var/log/secure show anything obvious?

Can users login from the console?

suicidaleggroll 02-04-2016 05:59 PM

Can you log in on a TTY as a regular user? Use Ctrl+Alt+F2 to switch to it. You can use Ctrl+Alt+F1 to switch back to X.

triley555 02-04-2016 06:00 PM

I will check those when I get to work tomorrow a.m. and post the results. Thank you for your suggestions.

Habitual 02-04-2016 06:31 PM

We'll be here and your users aren't going anywhere? ;)

MrTux 02-04-2016 08:33 PM

Seems like a troll changed your default runlevel to number 1 or single.

go do systemctl get-default


All times are GMT -5. The time now is 10:33 AM.