Link to home
Start Free TrialLog in
Avatar of mercury8001
mercury8001

asked on

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.
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

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.
ASKER CERTIFIED SOLUTION
Avatar of deurk
deurk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?
Avatar of deurk
deurk

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. ^^
Avatar of mercury8001

ASKER

thanx for the help