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

Posted on 2004-11-05
Last Modified: 2010-04-20
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.
Question by:mercury8001
    LVL 95

    Expert Comment

    by:Lee W, MVP
    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.
    LVL 2

    Accepted Solution

    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 ^^
    LVL 10

    Expert Comment

    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?
    LVL 2

    Expert Comment

    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. ^^

    Author Comment

    thanx for the help

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now