By way of clarification, I think
that, when you said you want "to enable auto login as a root," what you actually
meant (from your description) what that you want root
to be displayed as one of the "user" choices when the display manager request you to log in to the window manager after the boot process is finished and the X-server is started. The fundamental problem with this is, I believe (but I may be wrong), that root
's "home"directory is not
with all the other users. Instead, root
has a separate, independent, "home" directory: /root
Anyhow, I just did this (on a Fedora 12 system using KDM, so YMMV):
$ su -
# ln -s /root /home/root
# ls /home/
Then I went to the login manager and root
was listed as an available user (after the "exclude user" check box was unchecked).
Note, however, that I did that by starting a terminal session as "root" with the su -
command, which will not work on Ubuntu unless you unlock the root
login (which you said you did.).
If you can start a "root" terminal session, you can (almost) always start a window manager session for "root" by entering the command startx -- :1, which starts a second X-server on tty8 with "root" already logged in.
(It also leaves your non-root session on tty7
running. You can switch between those session with <ctrl>-<alt>-<F7> and <ctrl>-<alt>-<F8> key combinations.)
Note: For session switching to work, you need a /etc/X11/xorg.conf
file that contains the following stanza:
Option "DontZap" "off"
Option "DontVTSwitch" "off"
Option "HandleSpecialKeys" "Always"