On Saturday 26 Mar 2005 17:53, Mikkel L. Ellertson wrote:
>
> The reason has to do with X server security. Normally, only the user
> that "owns" the current X secession can have programs "connect" to it.
> Starting an X based program requires that it connect to an X server.
> Now, the user that is logged to the GUI "owns" the current X secession.
> He/she/it has the "keys" needed to connect in their home directory. If
> you use "su" to change to another user, the "keys" are still there. But
> if you use "su -", or if you change the envirement, then you no longer
> have the "keys", and the X server will not let you connect. Running
> "xhost + localhost" or "xhost localhost" tells the X server that any
> program on localhost can connect without needing the "keys". This is ok
> for a home system, but is a security risk on a more open system.
>
That sounds logical, Mikkel, except for two things.  One - it doesn't always 
happen when you try to edit a file as root, and two - it sometimes happens 
when you are working as user!

Anne
-- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels

Attachment: pgpDjQ8UpTE1H.pgp
Description: PGP signature

Reply via email to