[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: display export??



-----BEGIN PGP SIGNED MESSAGE-----

On Thu, 13 Jul 2000, Bolan Meek wrote:

<snipped stuff about X server security>

> I'm not understanding how to
> directly change this, but an easy work-around is to CTL-ALT-F2...F3,
> log in as root, and startx -- :1.  This starts a new display.
> 
> Then, you can flip between them with CTL-ALT-F7 ... CTL-ALT-F8.

There's a much easier workaround for this:  Give root permission to access
the display (i.e. the X Server).

There are many issues with allowing any kind of access to the X server,
and you don't want to do it unnecessarily.  But in this case, since
everybody (your user and the root login via su) it's probably safe.

As the user who owns the X session, run 'xhost local:root'
Then as the root user (in the shell where you'll be running commands as
root), run 'export DISPLAY=:0' to tell X clients run within that shell
what display to access.

HTH.
noah
 _______________________________________________________
| Web: http://web.morgul.net/~frodo/
| PGP Public Key: http://web.morgul.net/~frodo/mail.html 


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQCVAwUBOW4nHodCcpBjGWoFAQGtawQAgMuiiXPKGc88BnGhkJ4fcZwVMgbdGWCe
enXp1bekaKKl4cvV+DUihdJ0E+SuozpgR+Bo3gGYa0NTG3okvEAYVB34Obo3TTYC
S52XQsLv9gUaT3UpOyhM/6EdPlM66r4QxhRTHC0wHHsZDVd6OnQOLP7WHi0B2bMc
DGBg1vEfC+M=
=qV/t
-----END PGP SIGNATURE-----



Reply to: