[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

anyoung GUI login screen. can't login as root.

im a linux nubie

i just instaled debian on one of my systems. and it will not let me login as root in the GUI. the login window is labled Gnome Desktop manger (if that means anything). when i first install debian brout me to a comand line login. at witch time i start X with the startx comand to see if it was configured right. after that i rebooted the comp to install a old hard drive, when it booted back up whent to the grafical login i mention before. and would not let me login as root. i like the idea of a graficle login and would like to use it or something simaler.

  i need to get in to the GUI as root .  is there a way to change the setings on that thing to alow it. if not is there somthing i can replace it with, or at lest stop it form loding so i can lode the GUI form the startx command.
1 Solution
Lee W, MVPTechnology and Business Process AdvisorCommented:
From http://www.debian.org/doc/manuals/reference/ch-tips.en.html
8.1.4 "Let me disable X on boot!"

Chasing unstable/sid is fun, but buggy xdm, gdm, kdm, and wdm started during the boot process can bite you bad.

First get the root shell by entering the following at the boot prompt:

     boot: Linux vga=normal s

Here, Linux is the label for the kernel image you are booting; "vga=normal" will make sure lilo runs in normal VGA screen, and "s" (or "S") is the parameter passed to init to invoke single-user mode. Enter the root password at the prompt.

There are few ways to disable all the X starting daemons:

    * run update-rc.d ?dm stop 99 1 2 3 4 5 6 .

    * insert "exit 0" at the start of all /etc/init.d/?dm files.

    * rename all /etc/rc2.d/S99?dm files to /etc/rc2.d/K99?dm.

    * remove all /etc/rc2.d/S99?dm files.

    * run :>/etc/X11/default-display-manager

Here, number in rc2.d must correspond to the runlevel specified in the /etc/inittab. Also ?dm means that you need to run the command multiple times by substituting it with all of the xdm, gdm, kdm, and wdm.

Only the first one in the list is "the one true way" in Debian. The last one is easy but only works on Debian and requires you to set the display manager again later using dpkg-reconfigure. Others are generic methods to disable daemons.

You can still start X with the startx command from any console shell.
If you are using gdm, it is disabled by default. You must login as normal user and run (now as root) gdmconfig to change this default behaviour. Et voila: you then can boot under your GUI and log as root directly ^^
Hi mercury,

Rule No.1 is never ever login to GUI as root ! You do not need access gui as root . Login as normal user then If you need root priviligies you issue command su . Also if you really need to load some gui apllication with root privilieges you can run it as root from console. I'm also only debian user and still do not understand how some others distros of linux alow you to login gui as root.

What is your reason to login to GUI as root?
Don't patronise users. If the guy want to log in as root, answer the question by giving him what he needs, not your own opinion on the relevance of the question... even though I agree. ^^
mercury8001Author Commented:
thanx for the help

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now