Re: Displaying remote root X apps locally

From: Sam_Benner (Sam_Benner1_at_yahoo.com)
Date: 04/27/03


Date: Sun, 27 Apr 2003 12:48:14 -0700

Unlike telnet su doesn't preserve the DISPLAY variable. Have you tried
setting DISPLAY manually after su?

"Rich Teer" <rich.teer@rite-group.com> wrote in message
news:Pine.GSO.4.44.0304271236260.1220-100000@zaphod.rite-group.com...
> Hi there,
>
> I'm sure this is an easy one, but for the life of me, I can't
> think of the answer. Because certain products (like StarOffice)
> require a GUI installer, I need to run some X sessions as root
> from a remote terminal. For normal users, this is easy: just
> ssh into the machine, and away I go.
>
> But the trouble is this: if I log into said remote machine as
> me, and then su to root, it doesn't work. As a work around,
> I've temporarily enable remote-root logins via sshd.conf. This
> is obviously a bad idea from a security point of view, so how can
> I display remote X apps running as root across the network?
> Allowing remote root logins is NOT a long term option...
>
> <Rant>
> Why the HELL does Sun (and presumably others) insist on
> using these stupid GUI installers? pkgadd works perfectly
> well, thank you very much. At the very least a pkgadd
> installation should be provided so that competant people
> can do installations in their prefered way. OBTW, I don't
> exactly like said stupid GUI installer taking over the
> whole fscking screen, either! Good job this machine is
> dual headed: I can write this rant one one screen, which
> SO installs on the other. Grrrr.
> </Rant>
>
> --
> Rich Teer, SCNA
>
> President,
> Rite Online Inc.
>
> Voice: +1 (250) 979-1638
> URL: http://www.rite-online.net
>



Relevant Pages

  • Re: telnet session problem
    ... mean by "export it" and do ?I have to be root on the remote machine? ... the display number can be any ... On local machine set export DISPLAY=localmachine:17.0 (where local ... You don't have to be root. ...
    (comp.unix.solaris)
  • Re: telnet session problem
    ... Depending on your local environment, the display number can be any number, not only 0.0 ... Just enter echo $DISPLAY on the localmachine before setting it on the remote system. ... On local machine set export DISPLAY=localmachine:17.0 ... You don't have to be root. ...
    (comp.unix.solaris)
  • SUMMARY: remote CDE logins
    ... access by any client (e.g. xterm running on what you call your server). ... your "DISPLAY" is what is serving X to the X application ... xhost + will disable access control, so anyone can access your X server. ... Do you want an entire CDE login session from the remote machine ...
    (Tru64-UNIX-Managers)
  • Re: how to start X service
    ... Can I have multiple sessions of X running at the same time? ... opens the first X-session on the default display 0. ... To enable several concurrent GUI logins on different local consoles under ... - Telnet the remote server. ...
    (RedHat)
  • Re: programatically stop svchost.exe?
    ... WebClient - Display Name- WebClient ... Purpose: Enables Windows-based programs to create, access, ... RemoteRegistry - Display Name: Remote Registry ...
    (microsoft.public.vc.mfc)