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

Re: Running X apps when logged as su'd as root



on Mon, Mar 26, 2001 at 04:00:58PM -0800, Chris Majewski (majewski@cs.ubc.ca) wrote:
> "Karsten M. Self" <kmself@ix.netcom.com> writes:
> 
> > Rather than exporting xauthority, my preference is:
> > 
> >     # As root
> >     $ xauth merge ~$USER/.Xauthority
> > 
> > ...where $USER is your desired user.
> > 
> > This transfers cookies from $USER's .Xauthority file to root's
> > .Xauthority file.  Changes to user's .Xauthority file don't effect X.
> > X now has access to user's X session, but not vice versa.

> Speaking of reasonable defaults, shouldn't this be one? 
> -chris

Sorry?  I don't understand.

Root can *gain* access to an arbitrary user's X session.  This doesn't
mean root should *have* access.  X is something readily inverted.

-- 
Karsten M. Self <kmself@ix.netcom.com>    http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?       There is no K5 cabal
  http://gestalt-system.sourceforge.net/         http://www.kuro5hin.org

Attachment: pgpeRGJwv1VDs.pgp
Description: PGP signature


Reply to: