≡ Menu

Fedora 10 Enable GUI Root Login

Q. How do I enable root login under Fedora 10 Gnome GUI login screen / manager?

A. Fedora 10 uses pam module called pam_succeed_if.so. This module is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated. One use is to select whether to load other modules based on this test. This module blocks root login using GUI.

Login as root

Log in as normal user

Then open GUI terminal (bash prompt) and type the following command to become root user:
$ su -

WARNING! These examples may crash your computer if not executed properly. It is recommended that you always login as normal user to avoid any damage to your system and then use su - to get root level access as required.

Fedora 10 update GDM config to allow root login

Type your root password. Next, make a backup of /etc/pam.d/gdm, enter:
cp /etc/pam.d/gdm /root
Now open /etc/pam.d/gdm using gedit or vi text editor, enter:
gedit /etc/pam.d/gdm
OR
vi /etc/pam.d/gdm
Alternatively, you can do everything in a one command:
su -c 'gedit /etc/pam.d/gdm'
Find line that read as follows:

auth required pam_succeed_if.so user != root quiet

Remove or comment out line by prefixing #.

# auth required pam_succeed_if.so user != root quiet

Save and close the file. Logout from terminal and from GUI itself. Now you should be able login as root user using GDM GUI login manager.

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 67 comments… add one }

  • ranjith asam December 12, 2008, 12:16 pm

    hi to all

    i am ranjith. i want to know which media player will support of all formats of the videos.
    i want to install media player of any like VLC or Xine player .

    so please help me in this regards. which software will support for my requirements.

    i am using FEDORA 10 & RHEL 5 also.

    Isthere any site for Learningof Unix administration. please help me.

    i am working as a windows system admin as well as RHEL Desktop Engineer.

  • Leslie Satenstein December 12, 2008, 1:03 pm

    I did the above, found I could log in, but I still was unable to use all the gui commands that were important, these commands block themselves when they recognize the logon as root as opposed to a sudo user.

    Someone has hard coded stuff that should be parameterized.

    • james almm December 12, 2010, 11:43 pm

      tried it for fedora 12 and didn’t seem to work at all.

      • mermaldad December 21, 2010, 7:41 pm

        @james almm: Try doing the same for /etc/pam.d/gdm-password .

  • SAGA December 12, 2008, 3:32 pm

    Hi,
    It will be nice if you explain what’s happening inside when you doing this? What’s that pam.d and gdm?

    Thanks

    • Roc May 23, 2011, 6:27 pm

      what happen if it shuts down your system is there away to get back in?

  • nixCraft December 12, 2008, 4:26 pm
    auth required pam_succeed_if.so user != root quiet

    PAM is used to control authentication for each service.

    GDM is login manager and service for Fedora 10 and /etc/pam.d/gdm login configuration for GDM.

    pam_succeed_if.so module is used to test account characteristics. In this example, it blocks root user from login into the system. This is done using condition.

    HTH

  • marco December 13, 2008, 4:17 am

    It is recommended that you always login as normal user to avoid any _dmage_ to your system and then use su – to get root level access as required.

  • gr seshagiri December 19, 2008, 9:36 am

    Thanks Mr. Vivek for the hint about root login. It saved my time. I was about to reinstall F10

  • Sameer December 26, 2008, 7:40 pm

    Thanks for this excellent guide ! Worked perfectly…

  • vander January 2, 2009, 1:00 pm

    @marco:
    recommended, maybe, desirered no…For me Linux has always been an OS which left decisions like this to the USER not the OS/Develloper.
    I like to be logged in as root, and if i want to trash my system being that, it is up to me and me alone…

  • Trond January 3, 2009, 3:41 pm

    The lack of any sane way to configure the login screen (GDM) in Fedora 10 is just so mindboogingly stupid that I just want to weep.

    I regret upgrading from Fedora 6 to 10. The sound disapperared as I upgraded the kernel on Fedora 10 to the newest kernel. Honestly, it feels like redhat/Fedora is trying to push me back to windows after having used Linux since 1998.

  • dx January 8, 2009, 9:43 am

    thanks a lot!!

  • bharat January 16, 2009, 3:16 am

    thanx for this solution..
    what i am not able to understand about pam and gdm?

  • Mike Bennett January 19, 2009, 4:22 pm

    That worked! Thanks.

  • Dharmit Shah January 21, 2009, 3:40 pm

    Hello..

    I’ve multi-booted my laptop with Fedora 10 and Vista. the problr is that when I try to login as root, it doesn’t let me do. And through kernel it accepts the password and lets me login as a root.

    I logged in as Dharmit Shah(another user account that I’ve created). Then in the terminal I typed

    su

    and gave the root password that it asked for. It went successfuly at that time. Can you help me out to log in as a root from the boot up itself? Thanks in advance….!!!

  • PSMKREDDY January 23, 2009, 8:43 am

    very fine

  • Vijaykumar Sarode February 3, 2009, 4:59 pm

    dear Vivek Sir,
    thank you very much for this very useful information or otherwise i was about to reinstall the fedora10,

  • green February 4, 2009, 5:43 am

    hi,
    im new to fedora…. i installed fedora 10. while installing my mouse pointer is invisible and i used keyboard to select NEXT,,, NEXT…. while installing.

    Please helpme out… what shud i do to get visible mouse pointer with step by step procedure …..

  • Leandro February 4, 2009, 10:25 am

    You can do that without any changes aswel.

    Just open another terminal
    login as root
    them type
    startx — :3
    Easy …..
    If your system don’t have enough memory to run 2 x windows just kill the first.
    Its not very wise to use your system always as root but if you really need …

    Leoaraujo79@gmail.com

  • Anuj February 24, 2009, 12:00 pm

    Thanks man…..That worked!!!

  • Thiyagarajan February 26, 2009, 6:43 am

    Hi I had had the same problem “Fedora 10 Enable GUI Root Login”. but its working now properly.
    Thanks for you.

    Thiyagarajan

  • Saravana Nathan March 12, 2009, 11:08 am

    It is working good. Thanks a lot.

  • shahin March 13, 2009, 9:50 am

    i have done this work but it dose not work properly.
    actually it dose not send a message “we can not authenticate user” like past
    but after logging on with the root my desktop either KDE or GNOME could not be loaded.

  • Alienistic March 23, 2009, 10:14 pm

    gui login as regular user, open a command terminal, su root, gedit /etc/inittab
    edit your inittab to change it to runlevel 3, then save and shutdown -r now
    your computer will boot into command terminal now instead of gui, now login as root and startx.

    done.

  • Wei Seng March 26, 2009, 7:51 am

    Great! It works.

  • Pyrrhic March 26, 2009, 3:28 pm

    Thank you! I really need to log in as ‘root’ and – yes – I do know what I am doing. It was pretty disconcerting not to be able to log in when the upgrade finished from 8. Again, thanks for the post on how to fix this super-annoying ‘feature’ of F10.

  • Chris April 17, 2009, 3:07 pm

    Thanks to Leandro in his post 02.04.09 at 10:25 am!!!

    I’ve been looking on and off for a day or so to find a solution, and his is great! Not only is it simple, but it has the “feel” of being temporary, which is, I think, the way one should consider being logged in as root.

  • AP April 22, 2009, 6:32 pm

    Great Tutorial. Thanks..

  • kingy April 28, 2009, 4:40 am

    I don’t know why Fedora scrapped root gui logins but i’m sure it was security related?

    Course…the way i see it anyone worthy of hacking into yer box sure as shooting isn’t gonna need a GUI…Now are they?

    Thanks for the great info, i got my box back!
    kingy

  • Karimulla June 17, 2009, 9:07 am

    I am unable to login fedora core gui with root user, i tryed to do the the following, but still not able to login.. Kindly help

    # auth required pam_succeed_if.so user != root quiet

  • Karimulla June 17, 2009, 9:09 am

    I am unable to login fedora 11 gui with root user, i tryed to do the the following, but still not able to login.. Kindly help

    # auth required pam_succeed_if.so user != root quiet

  • Gee June 18, 2009, 2:20 pm

    Hey, friendly community

    Can u plz help me out, I installed fedora 10 on my pc and i’v been trying to build apache, php and mysql. But every time get this messege

    [
    [root@localhost Download]# cd httpd-2.2.11

    [root@localhost httpd-2.2.11]# ./configure
    checking for chosen layout… Apache
    checking for working mkdir -p… yes
    checking build system type… i686-pc-linux-gnuoldld
    checking host system type… i686-pc-linux-gnuoldld
    checking target system type… i686-pc-linux-gnuoldld

    Configuring Apache Portable Runtime library …

    checking for APR… reconfig
    configuring package in srclib/apr now
    checking build system type… i686-pc-linux-gnuoldld
    checking host system type… i686-pc-linux-gnuoldld
    checking target system type… i686-pc-linux-gnuoldld
    Configuring APR library
    Platform: i686-pc-linux-gnuoldld
    checking for working mkdir -p… yes
    APR Version: 1.3.3
    checking for chosen layout… apr
    checking for gcc… no
    checking for cc… no
    checking for cl.exe… no
    configure: error: in `/home/smarty/Download/httpd-2.2.11/srclib/apr':
    configure: error: no acceptable C compiler found in $PATH
    See `config.log’ for more details.
    configure failed for srclib/apr
    [root@localhost httpd-2.2.11]#

    • nixCraft June 18, 2009, 3:28 pm

      No need to build it from source. Simply use yum command to install the same:
      yum install httpd php mysql mysql-server

  • Gee June 18, 2009, 3:49 pm

    Sorry dude, i forgot to tell you this.
    I did use the yum installer but, but every time i try to open a page on localhost, an alias not from root folder(htdocs) i get the message
    “Forbidden
    You don’t have permission to access /ROOTFOLDER on this server.
    Apache/2.2.10 (Fedora) Server at localhost Port 80″

    from the browser

  • nixCraft June 18, 2009, 4:36 pm

    This is Apache server configuration issue and it has nothing to do with yum or source code installation. Set correct permission on folder and see this faq for more details about forbidden errors.

  • TED June 24, 2009, 4:45 pm

    This works great, I have been searching and searching and nothing came up. Thanks for the article.

    Ted

  • George July 8, 2009, 9:29 pm

    Gee,

    From the look of you error you do not have a compiler installed on your system. You can try this:

    |> which gcc
    /usr/lib/ccache/gcc

    If you do not get something similar to the above, then you first need to install a compiler as well as the tool-chain before you can build packages from source code. At a minimum you will need the following programs:

    make — a tool for automating compiling programs
    gcc — GNU compiler collection, a front-end for a number of compilers
    cc1 — the C compilers (comes with the gcc package)
    as — an assembler (comes with the binutils package)
    ld — the linker (and loader) (also comes with the binutils package)

    wish I could tell you the yum packages you would have to get, but I tend to build everything from source code myself.

  • Gee July 13, 2009, 12:16 pm

    I locked my root user with passwd -l root. Can anyone help me unlock it?

  • Gee July 13, 2009, 12:19 pm

    Thanx, i’ll try that

  • fareed July 20, 2009, 11:22 am

    i used this method to login root but failed on fedora 11 please help to login as root in gui fedora 11. thnks

  • Vwbond August 13, 2009, 6:24 pm

    Hey, “Gee”
    You and use “passwd -uf root” but you’ll have to use a systemrescue CD inorder to do it so you can change the password for root.

  • Volker B. September 22, 2009, 9:23 pm

    Using Fedora 11 you might also want to check other files for checks against being root:

    # grep -e ‘ root’ /etc/pam.d/*
    /etc/pam.d/gdm:#auth required pam_succeed_if.so user != root quiet
    /etc/pam.d/gdm-fingerprint:#auth required pam_succeed_if.so user != root quiet
    /etc/pam.d/gdm-password:#auth required pam_succeed_if.so user != root quiet
    /etc/pam.d/xdm:#auth required pam_succeed_if.so user != root quiet

  • raj September 28, 2009, 4:38 pm

    You can even edit in the following way to get access as root:

    auth required pam_succeed_if.so user quiet

  • Vajindar Laddad November 10, 2009, 8:09 am

    Thanks a million……….

  • Rajiv November 29, 2009, 2:30 pm

    A very useful article…..

  • Adam Gale January 6, 2010, 12:06 pm

    Did not work.

    Rebooted, still cannot log in as root.

    Why have they ruined Fedora!!

  • srinivas March 8, 2010, 12:20 pm

    thanx a lot u have helped a lot

  • sandaruwan March 20, 2010, 8:29 am

    Thanks. you help me a lot…

  • chetan shende April 22, 2010, 2:41 am

    It works thank you!

  • vladyka July 22, 2010, 9:20 am

    1. user$ su – root
    2. passwort eingeben
    3. root$ passwd -uf root
    4. passwort eingeben
    5. $ nano /etc/pam.d/gdm

    zeile
    pam_succeed_if.so user != root quiet
    “root” mit “test” ersetzen
    pam_succeed_if.so user != test quiet
    6. $ nano /etc/pam.d/gdm-password
    zeile
    pam_succeed_if.so user != root quiet
    “root” mit “test” ersetzen
    pam_succeed_if.so user != test quiet
    7. user abmelden
    8. mit root anmelden

  • Summit October 9, 2010, 1:47 am

    Hi,
    Today, I installed fedora 13. I want to install my software. For this, I have to login in root. I did, what is written above. But I am not able to login in root.
    Can anybody help me pls?

    Summit

    • Manoj October 27, 2010, 10:31 am

      Set the password for root from the terminal or from Single User mode / Mainitanence mode i.e. [runlevel 1 (init 1)]

      comment or delete the line from the following file:
      /etc/pam.d/gdm

      #auth required pam_succeed_if.so user != root quiet

      &

      /etc/pam.d/gdm-password

      #auth required pam_succeed_if.so user != root quiet

      reboot the machine & select other at GUI login. put the login name as root & give the password.

      • Jozef July 1, 2011, 10:24 pm

        Can anybody tell me why this is not possible in GUI? Why? There are a lot of discussions why Linux distros are not so popular like Win or Mac OS. But I think this the answer: it’s not comfortable to use them.

      • prasad December 16, 2011, 6:23 am

        tahnqqqqqqqqqqqqqqqqqqqqqq bossssssssssssssssss its working
        now i know that, to login as a root from gui,

        we have to change two files
        /etc/pam.d/gdm
        /etc/pam,d/gdm-password

        nice work dude

  • Manoj October 27, 2010, 10:30 am

    Hi All,
    Solution on RHEL 4,5,6 for root user able to login via GUI:

    Set the password for root from the terminal or from Single User mode / Mainitanence mode i.e. [runlevel 1 (init 1)]

    comment or delete the line from the following file:
    /etc/pam.d/gdm

    #auth required pam_succeed_if.so user != root quiet

    &

    /etc/pam.d/gdm-password

    #auth required pam_succeed_if.so user != root quiet

    reboot the machine & select other at GUI login. put the login name as root & give the password.

    • irplayboy May 4, 2012, 9:24 am

      it work for fedora 16
      thx

  • RonM July 21, 2011, 7:53 pm

    Try this on Fedora 10, 12, and 14 … No luck.

  • tamashebi September 19, 2011, 8:45 pm

    i dont have root permision in var/www/html folder. please help…

    • Gee October 12, 2011, 7:57 am

      I need SERIOUS help, AURGENTLY

      My fedora 14 boots and stays stuck on the splash screen, this is as far as it loads:

      “Welcome to fedora ”

      Start adev : [Ok]
      Setting hostname localhost.localdomain [ok]
      Checking filesystem [ok]
      /dev/sda4: Clean 330704/81760… [ok]

      Remounting root filesystem [ok]
      Mounting local.filesystem: [ok]
      Enabling local.filesystem quotes [ok]
      Enabling etc/fstab swaps
      /dev/fd/8: line 2 : /bin/awk: permission denied

      ….
      ….

      init: rcS post-stop process (852) terminated with status 1

      plymouth: pl-array.c: 133: ply_array_get_pointer_elements:

      Assertion “array->element-type == PLY_ARRAY_ELEMENT_TYPE_POINTER = failed

      —————————-

      Please help, i don’t have a backup and i’m currently working on a project thats in there

  • Gee October 12, 2011, 7:40 am

    @tamashebi

    I think this might help,

    1.Fire your terminal
    2. login as root, $ su ……
    2. Navigate to www folder, $ cd /var/www
    3. And fire this command, $ chmod 777 -R html

  • Muhammad November 23, 2011, 5:39 am

    Is there any procedure to get login on Linux GUI Desktop with Active Directory users, However I have integrated active directory users with linux through winbind and i can login under linux text console with AD users.

    I want to use Graphical Desktop with Active Directory users but unable to logon.

  • SURESH January 10, 2012, 8:16 am

    i am useing fedora 14 32-bit… while i am removing my old VM

    plymouthd: ply-array_get_pointer_elements: Assertion ‘array->element_type == PLY_ARRAY_ELEMENT_TYPE_POINTER’ failed

  • SURESH January 10, 2012, 8:21 am

    I am using Fedora 14 32-bit..while i am removing my old VM Ware(through GUI) it asks so many dependences for removing just i am selected OK for everything..after rebooting it display error like this. Please send me correct solution…

    plymouthd: ply-array_get_pointer_elements: Assertion ‘array->element_type == PLY_ARRAY_ELEMENT_TYPE_POINTER’

  • magesh August 18, 2012, 7:16 am

    nice post

  • KR October 21, 2013, 7:30 pm

    @Gee,

    I know your reply is old, but maybe you will get this! Did you ever figure out what was going on with your issue?

    I am stuck on an issue that looks identical, but I can’t find much information at all. One of my centOS 6.4 boxes went boom on me after a restart… it mounts the disks fine, but it freezes at the same point every time I try to boot up… even in single-user mode. When trying to boot into rescue mode, it freezes after mounting /tmp.


    Mounting local filesystems…. OK
    Enabling /etc/fstab swaps….. OK
    /dev/fd/8: line 2: /bin/awk: Permission denied
    init: rcS post-stop proces (789) terminated with status 1

    …. [ freezes ] ….

    I don’t know what to do as I can’t even boot rescue mode to investigate!

  • monika sharma November 27, 2013, 4:57 pm

    plz help me ……if m using cp /etc/pam.d/gdm/ root……..it doesn’t work..it shows “-bash: cp: command not found” what to do now?

Leave a Comment