Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
I have installed gnome and GDM and set it to start at boot but I can't login. I am trying to login as root though. Is it only possible to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14

    Can't login in GDM


    I have installed gnome and GDM and set it to start at boot but I can't login. I am trying to login as root though. Is it only possible to login as a user? If so how can I make it back to the command prompt to make a user?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    GUI logins are generally disabled for root users for security reasons. You can check the Arch wiki article on GDM for several different workarounds to logging in with GDM as regular and root user:

    https://wiki.archlinux.org/index.php/GDM
    oz

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    The wiki page does say how to login as root through GDM but to do so you must edit a configuration file and I have no way to do that because I can't get to the command prompt. Is there a key to press during boot to go to the original login screen?

  4. $spacer_open
    $spacer_close
  5. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by osiff View Post
    Is there a key to press during boot to go to the original login screen?
    Assuming you are using GRUB, you can boot into single-user mode to have root access without GDM loading:

    -boot your machine
    -when the GRUB menu appears, use the arrow keys to choose the OS you want to boot
    -press the letter "e'' on the keyboard to enter edit mode
    -use your arrow keys to select the kernel line of the kernel to be booted
    -press "e" to edit that line
    -go to end of line and type "single" (without quotes) as a separate word, then press ENTER
    -press ESC key to exit the edit mode
    -press "b" to boot into single user mode

    You can see the following wiki page (down toward the bottom of the page) for some alternate methods of switching run-levels:

    https://wiki.archlinux.org/index.php...ing_run-levels
    Last edited by oz; 11-24-2011 at 05:19 AM. Reason: missed a step
    oz

  6. #5
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    This command didn't seem to make much difference. Any other suggestions?

  7. #6
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Sorry, I accidentally left out the following step above but have added it now:

    then press ENTER
    oz

  8. #7
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    I created a user and can login but once I hit enter the login dialog disappears but nothing else happens

  9. #8
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    I personally find display managers to be a pain in the rear (for various reasons) so never install them, but instead use an .xinitrc file (see the .xinitrc wiki page) and 'startx' to start my window manager, or desktop environment. You could always try that, then once you have it all working the way you want, you could start experimenting with your display manager again. If your desktop environment is installed and configured properly but won't start with 'startx', you probably have some kind of video/graphics issue going on.
    oz

  10. #9
    Just Joined!
    Join Date
    Feb 2011
    Posts
    14
    Well it won't boot to run level 3 either now it just boots to a blank screen when i add 3 to the end of the kernel line through GRUB

  11. #10
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045
    Have you tried a normal boot, then at the login screen press ctrl+alt+f1 to get to a terminal ... you should be able to login as root and create a normal user.

Page 1 of 2 1 2 LastLast

Posting Permissions

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