Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    RHEL 6 root login


    Hi I am a newbie and installed RHEL6 beta.I want to login as root user because there are somefiles I can't change via Terminal even though I used su- to run the command as root user..
    I tried to change gdm as root user via :#gedit /etc/pam.d/gdm and changed one line to :
    #auth required pam_succeed_if.so user != root quiet.
    I restarted my computer but still could not login as root user..

    Is there something I am missing to get the root user login with GUI

    Thanks for your help

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,201
    Did you install with SELinux extensions enabled?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    699
    Quote Originally Posted by McKinon View Post
    Hi I am a newbie and installed RHEL6 beta.I want to login as root user because there are somefiles I can't change via Terminal even though I used su- to run the command as root user..
    I tried to change gdm as root user via :#gedit /etc/pam.d/gdm and changed one line to :
    #auth required pam_succeed_if.so user != root quiet.
    I restarted my computer but still could not login as root user..

    Is there something I am missing to get the root user login with GUI

    Thanks for your help
    that doesn't make sense, what file are you trying to change, and what command are you using? Logging into X (gnome, kde, whatever) is almost always unnecessary, and a security risk.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  4. $spacer_open
    $spacer_close
  5. #4
    yes,SElinux extensions are enabled.Is there something that I have to look at in SElinux management?

  6. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,201
    SELinux configuration is non-trivial. Read the documentation carefully. You will find what you need there.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #6
    Just Joined!
    Join Date
    Feb 2011
    Location
    Nepal
    Posts
    1
    @McKinon..
    You did was correct but u need to do one more edit in the /etc/pam.d/gdm-passwd file.

    ================
    [root@ispexperts.com.np pam.d]#vi gdm-password

    Find and Comment or remove this line into your gdm-password file like this:
    #auth required pam_succeed_if.so user != root quiet


    Save & Exit from File. Now Logout and Try to Login as a root user. Now you are able to Login as a root user from GUI
    =====================
    That'z it..
    U will get a security error message - boss just ignore it N u r done.
    More u can get on :
    www dot ispexperts dot com np /?p=744&preview=true&preview_id=744&preview_nonce=4 998de4659
    ==================
    Last edited by abhandari; 02-24-2011 at 07:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •