LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-04-2016, 06:54 PM   #1
triley555
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 02-04-2016, 06:57 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,186
Blog Entries: 10

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

Last edited by Habitual; 02-04-2016 at 07:01 PM.
 
Old 02-04-2016, 06:59 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,259

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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.
 
Old 02-04-2016, 07:00 PM   #4
triley555
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
I will check those when I get to work tomorrow a.m. and post the results. Thank you for your suggestions.
 
Old 02-04-2016, 07:31 PM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,186
Blog Entries: 10

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
We'll be here and your users aren't going anywhere?
 
Old 02-04-2016, 09:33 PM   #6
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
Seems like a troll changed your default runlevel to number 1 or single.

go do systemctl get-default

Last edited by MrTux; 02-04-2016 at 09:35 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to login any user through the console but users can login in GUI p kumar Linux - Server 1 04-19-2012 07:09 AM
[SOLVED] How to login as root to GUI of CentOS 5.3? k_oudom Linux - Software 6 09-14-2009 09:03 AM
root and users unable to login in command mode- RHEL 4 pragabalu Red Hat 1 07-25-2009 10:22 AM
root and users unable to login in command mode- RHEL 4 pragabalu Linux - General 1 07-25-2009 02:14 AM
Unable to Login to XSession with non root users freedo5 Red Hat 6 01-12-2007 03:34 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration