LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-24-2014, 07:43 AM   #1
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96
Blog Entries: 1

Rep: Reputation: 0
Unable to login root user on RHEL 7.0


Hi,

Please let us know how to login through root user on RHEL 7.0 OS in GUI mode. RHEL 7.0 offering user base login in to GUI mode, but I can't login through root.

I'm also able root user login through txt mode.

please help ! Thanks
 
Old 06-24-2014, 09:22 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sandeep002gupta View Post
Hi,
Please let us know how to login through root user on RHEL 7.0 OS in GUI mode. RHEL 7.0 offering user base login in to GUI mode, but I can't login through root. I'm also able root user login through txt mode.
As you've been asked before, have you tried looking this up, before posting? And have you tried contacting Red Hat support? You are PAYING FOR RHEL, RIGHT?????

This is explained in Red Hat's knowledgebase, which you have access to since you're paying for RHEL. Comment out this line in /etc/pam/gdm:
Code:
auth required pam_succeed_if.so user != root quiet
And bear in mind what you're wanting to do is disabled FOR A REASON...it is a very, VERY bad idea to log in through the GUI as root. You should log in as a standard user, and switch to root ONLY WHEN NEEDED, with either the su or sudo commands.

Last edited by TB0ne; 06-24-2014 at 09:23 AM.
 
Old 06-24-2014, 01:17 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Also using the pam hack will cause PROBLEMS!!!!!

try to update as root in the gui

a pop up will ask for the root password
then fail ,because you ARE already root

this is the SAME issue that fedora has since fedora11
the root gui login is BLOCKED!!!!


there is only really one ONE 1 reason to use the pam hack

use it
log in as root into the gui
set the THEME to "hi-contrast" or " Nauseating Headache "
undo the pam hack
and use the NORMAL first non root user and "su" or "su -"

Last edited by John VV; 06-24-2014 at 01:21 PM.
 
Old 06-25-2014, 04:35 AM   #4
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96

Original Poster
Blog Entries: 1

Rep: Reputation: 0
TB0ne - thanks for reply,

but at RHEL 7.0 below path/file is not exist:
/etc/pam/gdm
auth required pam_succeed_if.so user != root quiet

while here is files present - /etc/pam.d/gdm-autologin
constants:
#%PAM-1.0
auth required pam_env.so
auth required pam_permit.so
auth include postlogin
account required pam_nologin.so
account include system-auth
password include system-auth
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
-session optional pam_ck_connector.so
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
session required pam_namespace.so
session include system-auth
session include postlogin

Please help if you can.

we want to GUI mode login through root user for specific reason.
 
Old 06-25-2014, 08:18 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sandeep002gupta View Post
TB0ne - thanks for reply,
but at RHEL 7.0 below path/file is not exist:
/etc/pam/gdm
auth required pam_succeed_if.so user != root quiet
Ok..does the file /etc/pam.d/gdm exist? And AGAIN, since you've ignored it several times now, you are PAYING FOR RHEL, RIGHT???? HAVE YOU CALLED THEIR TECH SUPPORT, since you're paying for it???? And have you tried any of the MANY solutions you can find via Google??

Another possibility is to edit the /etc/gdm/gdm.conf file. In the [security] section of the file, add "AllowRoot=True".
Quote:
we want to GUI mode login through root user for specific reason.
And what, exactly, is this 'specific reason'??? Bear in mind what you're asking for HAS no 'specific reason', other than poor system security and administration. Any user you trust with the root password should easily be able to log in as themselves, and either use su or sudo to get root access, and do whatever they wish. This includes running GUI based programs on the X console.

If they are only marginally-skilled users needing to run a task or two, then you DEFINITELY don't want them to have the root password, especially not through a GUI. That's what SUDO is for, so they can run whatever commands you say they can.
 
Old 06-27-2014, 10:32 AM   #6
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thanks TB0ne,

but I've tried to multiple path and also search google, not pickup solution for this issue.
as check /etc/pam.d/gdm file & /etc/gdm/gdm.conf both are not exist in to RHEL 7.

here one file is present /etc/gdm/custom.conf but in that file no any configuration contains exist.

I've attached snapshot for your reference.

[root@localhost ~]# vi /etc/pam.d/gdm-
gdm-autologin gdm-launch-environment gdm-pin
gdm-fingerprint gdm-password gdm-smartcard
[root@localhost ~]# vi /etc/pam.d/gdm-^C
[root@localhost ~]# vi /etc/gdm/
custom.conf Init/ PostLogin/ PostSession/ PreSession/ Xsession
[root@localhost ~]# cat /etc/gdm/custom.conf
# GDM configuration storage

[daemon]

[security]

[xdmcp]

[greeter]

[chooser]

[debug]

[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

Please help. ! thanks
 
Old 06-27-2014, 11:52 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sandeep002gupta View Post
Thanks TB0ne,
but I've tried to multiple path and also search google, not pickup solution for this issue. as check /etc/pam.d/gdm file & /etc/gdm/gdm.conf both are not exist in to RHEL 7.

here one file is present /etc/gdm/custom.conf but in that file no any configuration contains exist. I've attached snapshot for your reference.

[root@localhost ~]# vi /etc/pam.d/gdm-
gdm-autologin gdm-launch-environment gdm-pin
gdm-fingerprint gdm-password gdm-smartcard
[root@localhost ~]# vi /etc/pam.d/gdm-^C
[root@localhost ~]# vi /etc/gdm/
custom.conf Init/ PostLogin/ PostSession/ PreSession/ Xsession
[root@localhost ~]# cat /etc/gdm/custom.conf
# GDM configuration storage

[daemon]

[security]

[xdmcp]

[greeter]

[chooser]

[debug]
Ok...so did you read and understand my last post?? Do you not see the 'security' section in the file you posted? Did you try putting what I looked up for you in that section???
Quote:
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
Please help. ! thanks
Yes, we know you're using RHEL 7. And AGAIN, since you keep ignoring the question: DID YOU CALL RED HAT SUPPORT, since you are PAYING FOR RHEL???? If you're not going to pay for RHEL, then you SHOULD NOT use it...all you're going to wind up doing is having an unstable, insecure system that's hard to work with.

And since you STILL ignore questions, I'll again both tell you that what you're doing is a very bad idea, and AGAIN ask you what you're trying to accomplish/run by doing this.

If you want people to help you, you need to acknowledge what folks are saying, and answer the questions asked of you. If you don't, why should anyone bother to try to help you?
 
Old 06-30-2014, 06:23 AM   #8
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thanks for information.

if we can use RHEL 7.0 trail version then KYA GOLI MAR DEGA.
 
Old 06-30-2014, 09:08 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sandeep002gupta View Post
Thanks for information.
if we can use RHEL 7.0 trail version then KYA GOLI MAR DEGA.
AGAIN, if you are not going to PAY FOR RHEL, then don't use it. No idea what you posted above...this is an English-only forum. Why don't you translate it?

You may think you're doing something good by using RHEL for free...but you are NOT. Your server WILL NOT.....EVER get any updates, patches, bugfixes, or security fixes from Red Hat, unless you PAY. All you'll wind up with is an unstable, insecure server, that is a LOT harder to load new software on to. If you are the admin, you're doing NOTHING but making more work for yourself.
 
Old 06-30-2014, 11:30 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
TB0ne, I don't know why you come up with it again and again although you have been corrected multiple times now: Red Hat offers subscriptions without support, you don't have automatically the possibility to call the support just because you have paid for a RHEL subscription. Also, as sandeep002gupta points out, the possibility that an OP uses a trial version for evaluation always exists.
So please refrain from bringing this up all the time.

Last edited by TobiSGD; 06-30-2014 at 11:33 AM.
 
Old 06-30-2014, 02:05 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by TobiSGD View Post
TB0ne, I don't know why you come up with it again and again although you have been corrected multiple times now: Red Hat offers subscriptions without support, you don't have automatically the possibility to call the support just because you have paid for a RHEL subscription.
You don't have to 'correct' me; I know that's a possibility. However, the OP has not yet said/acknowledged that they're paying ANYTHING for RHEL, and pointing out to someone who is (ostensibly) putting a server into production at a company WITHOUT support is a bad idea. The main point here is that the OP hasn't answered questions; such as, what they're trying to do, what program(s) they 'need' root at a GUI to run, and if they're using RHEL, if they're paying for it.

I don't feel it's a bad thing to point out to people who may be new to the scene, that using CentOS is a VERY viable alternative to RHEL, and will make their lives easier in the future. If they're doing self-support anyway with RHEL, what's the real value of RHEL vs. CentOS?
Quote:
Also, as sandeep002gupta points out, the possibility that an OP uses a trial version for evaluation always exists. So please refrain from bringing this up all the time.
Yep, they can use it for evaluation...and during that period of time, they get support.
 
Old 06-30-2014, 04:59 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by TB0ne View Post
You don't have to 'correct' me; I know that's a possibility. However, the OP has not yet said/acknowledged that they're paying ANYTHING for RHEL,
I don't see why the OP should have to inform you about company internals. If the OP is paying for a subscription and of which type that subscription is is information that is not relevant at all for the problem at hand.
Quote:
and pointing out to someone who is (ostensibly) putting a server into production at a company WITHOUT support is a bad idea.
Indeed, but you were not pointing out, you started yelling at the OP in your very first post. I don't believe that you don't know about Netiquette.
Quote:
The main point here is that the OP hasn't answered questions; such as, what they're trying to do, what program(s) they 'need' root at a GUI to run, and if they're using RHEL, if they're paying for it.
Again, if this is a registered copy of RHEL is not relevant at all. I do agree with you about not answering technical questions, though.
Quote:
I don't feel it's a bad thing to point out to people who may be new to the scene, that using CentOS is a VERY viable alternative to RHEL, and will make their lives easier in the future.
The OP registered here three years ago, I wouldn't call that new to the scene. Also, there is a difference between pointing something out and yelling at people on a forum. You started with the latter and kept that course over the thread.
Quote:
If they're doing self-support anyway with RHEL, what's the real value of RHEL vs. CentOS?
That you are doing self support for your OS does in no way indicate that you do self support for the applications running on the OS. A lot of software is only supported on RHEL, but not on other distributions, including CentOS.

I think we have derailed this thread enough, if you want to discuss this further please contact me per PM or mail.
 
Old 06-30-2014, 11:02 PM   #13
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by sandeep002gupta View Post
Thanks for information.

if we can use RHEL 7.0 trail version then KYA GOLI MAR DEGA.
Hi Sandeep,

You need to be respectful, courteous and respond responsibly. DO NOT use such language here. People here are trying to help you.

I agree you've a valid point but I feel the line was unnecessary. I hope you will keep this in mind. Thanks.
 
Old 07-01-2014, 12:25 AM   #14
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by TB0ne View Post
No idea what you posted above...this is an English-only forum. Why don't you translate it?
This may derail the thread further, but just for the heck
I'd like to translate:
Quote:
KYA GOLI MAR DEGA.
The language is Hindi and it says "Will you shoot me down?"

So, in English it would have been:
Quote:
if we can use RHEL 7.0 trail version then will you shoot me down?
LOL (and yes, I am actually laughing out loud)!
 
Old 07-01-2014, 11:53 AM   #15
sandeep002gupta
Member
 
Registered: Apr 2011
Posts: 96

Original Poster
Blog Entries: 1

Rep: Reputation: 0
kindly ignore the previous word.
sorry for bother. but I didn't get the resolution for my actual question.
ok let see some others point out from Google search.

thanks to all...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Non root user cannot login - RHEL 6.0 ( Santiago) saraswathi55 Red Hat 2 12-14-2011 06:47 PM
root and users unable to login in command mode- RHEL 4 pragabalu Red Hat 1 07-25-2009 09:22 AM
root and users unable to login in command mode- RHEL 4 pragabalu Linux - Newbie 3 07-25-2009 05:41 AM
root and users unable to login in command mode- RHEL 4 pragabalu Linux - General 1 07-25-2009 01:14 AM
unable to login as user other than root on RHEL 4 done some changes in etc /shawdow abhi_raj Linux - Newbie 1 07-18-2006 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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