Re: login as root to GUI



On Fri, May 20, 2011 at 11:49:12AM +0200, Erwan David wrote:
NOT xhots + !!!
If you have to widen, just do xhost +local:

First command opens to the whole internet, second one only to connnections from localhost.

There are better methods than even xhost +local -- if you have a local ssh server and allow root logins,

ssh -X root@localhost

Or, you can give your root user access to your X authority

# xauth merge ~user/.Xauthority

(with gdm3 you may need to inspect your XAUTHORITY variable to see
where it lives, e.g. /var/run/gdm3/auth-for-user-XXXXXX/database)

Of course the aformentioned gksu and gksudo try to be as safe as possible.

--
Jon Dowland


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20110520130311.GC20103@xxxxxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How to run an X program as a different user?
    ... /etc/sudoers must look like to make sudo do what I want. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • How to run an X program as a different user?
    ... /etc/sudoers must look like to make sudo do what I want. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Is "xhost +si:localuser:root" safe?
    ... but this is a rather dirty solution). ... isn't much different from a raw "xhost +"!) ... Well root can always set XAUTHORITY to some random user .Xauthority ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: enabling remote X Window sessions
    ... It was always left to the user to control with xhost and the default ... This behavior with Debian is totally new to me. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • xhost: cannot connect to X server
    ... I can' t make xhost to work. ... The programs included with the Debian GNU/Linux system are free software; ... xterm Xt error: Can't open display: 192.168.1.6:0 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)