Enabling root access to Gnome under Debian/Ubuntu

DANGEREUX (sécurité) seulement sur machines de tests “non importantes”

This is for Debian 5+
Some of us find it easy to work as root access instead of sudo.
To permanently enable root access to your Debian/Gnome desktops edit the /etc/gdm/gdm.conf file.

In [security] section Allow root by setting the value to True.
Once you’re done with it, you need to reboot or just restart the gdm for the change to take effect.

# Allow root to login.  It makes sense to turn this off for kiosk use,
# when you want to minimize the possibility of break in.

# Allow login as root via XDMCP.  This value will be overridden and
# set to false if the /etc/default/login file exists and contains
# “CONSOLE=/dev/login”, and set to true if the /etc/default/login
# file exists and contains any other value or no value for CONSOLE.

(http://platonic.techfiz.info/2008/12/31/enabling-root-access-to-gnome-under-debianubuntu/)[Source :]

Update for DEBIAN6

Debian 6+ uses gnome3, so you have to edit :
/etc/gdm3/daemon.conf (instead of /etc/gdm/gdm.conf)

You also have to change /etc/pam.d/gdm3 according to this info:
source : http://forums.debian.net/viewtopic.php?f=5&t=60500

Needs to disable line N°5 in /etc/pam.d/gdm3:

auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
#auth required pam_succeed_if.so user != root quiet_success
@include common-auth
auth optional pam_gnome_keyring.so
@include common-account
session required pam_limits.so
@include common-session
session optional pam_gnome_keyring.so auto_start
@include common-password

Update for DEBIAN7

You have to add to the file /etc/gdm3/daemon.conf AllowRoot=true AllowRemoteRoot=true by hand as it is not present by default.


In the file /etc/pam.d/gdm3 it is now line2

#auth required pam_succeed_if.so user != root quiet_success

Product and graphic designer turned to be a Mac SysAdmin.

Posted in Admin, Linux, tips tricks scripts Tagged with: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>