Re: To use GUI as root

From: Ciaran Johnston (cj_at_nologic.org)
Date: 08/19/04

  • Next message: stan: "Re: Is the new installer creating too small a / partition?"
    Date: Thu, 19 Aug 2004 12:47:01 +0100 (IST)
    To: "Alexei Chetroi" <debian@lexa.uniflux-line.net>
    
    

    Alexei Chetroi said:
    > On Thu, Aug 19, 2004 at 09:55:16AM +0100, Ciaran Johnston wrote:
    >> Date: Thu, 19 Aug 2004 09:55:16 +0100 (IST)
    >> From: Ciaran Johnston <cj@nologic.org>
    >> To: Johan Sch <johansche@absamail.co.za>
    >> Subject: Re: To use GUI as root
    >>
    >> Johan Sch said:
    >> >
    >> > In Suse if you are normal user you use . sux - . to become root and be
    >> > able to use GUI applications.
    >> >
    >> > Kindly please what would the same be in Debian.
    >>
    >> Set your display as root:
    >> export DISPLAY=:0.0
    >>
    >> then allow localhost access to the display as normal user:
    >> xhost + localhost
    >
    > Thus allowing any user with shell on your computer connecting to your
    > screen (not really a problem if you're only user in the system). If you
    > are not going to use sux, instead of "xhost + localhost", better run
    > "xauth list" as user which launched X session, to get list of cookies,
    > than add as root "xauth add <line which matches your display>". Or set
    > enviroment variable XAUTHORITY of root to user's ~/.Xauthority. See
    > man xauth for more information.

    Or use "xhost + root" if you are worried about other users using the display.

    Of course, I don't know what the situation would be if a user name was the
    same as a hostname ...

    In any case, the OP typed "sux -" which I assumed was a typo, but it turns
    out sux is actually a wrapper around the standard su command which will
    transfer your X credentials to the target user. It's available here:
    http://fgouget.free.fr/sux/sux-readme.shtml

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: stan: "Re: Is the new installer creating too small a / partition?"

    Relevant Pages

    • Re: What is seen in Local Network ? (newbie)
      ... > see a way of getting root privileges sufficiently fluently to follow ... Maybe there is a way of using shell from user not root, ... the 'sux' lets root use your X server. ... The ampersand at the end let's you get the command line prompt back to ...
      (alt.os.linux.suse)
    • Re: [SLE] Correct way to update programs?
      ... Tried to install it with apt-get install sux but it seems to be the ... shell, as root, using sux: ... "sux {root password}" ...
      (SuSE)
    • Re: hi all..
      ... and someone gets access your shell account, ... Only root can install an su binary. ... Of course, if I have sudo ...
      (Fedora)
    • Re: Kmail offline
      ... GUI sessions as root? ... I will not help you with problems running GUI as root. ... That was a straight copy paste from the shell it ran from. ... checking I could get it to do said the install was all right. ...
      (Fedora)
    • Re: csh as default root Shell
      ... Another source is the the FreeBSD Handbook that is available ... As for changing the root shell, it is probably not a good idea. ... Put the new root account you created farther down in the passwd file ...
      (freebsd-questions)