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

Re: Newbee-ish X and root question



* Paul Johnson <baloo@ursine.dyndns.org> [20030327 00:21 PST]:
> Try running xhost +local:localhost as the user you initially logged in
> as from an xterm or similar program.  Things will Just Work(tm) then.

This will work as long as you're the only user on your machine.  This is
a bad habit to form if you'll ever be using a multiuser box.  It will
still work, but it will also let anyone else who may be logged into the
machine go nuts with your display.  Remember, that not only means
displaying windows, but also taking screen shots, playing with xmodmap,
etc.  That's just the beginning.  xsniff anyone?  (that's key logging,
in any window on the display, for anyone that's not familiar.)  Worse
still, you're doing this just before typing in the root password.  Bad
mojo.

Please, please, please, don't use xhost.  Really.

Better alternatives:  xauth, su -m, ssh -X

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"Computer Science is no more about computers
than astronomy is about telescopes."  -- E.W. Dijkstra

Attachment: pgp8niGKEfCSG.pgp
Description: PGP signature


Reply to: