On Saturday 26 Mar 2005 17:53, Mikkel L. Ellertson wrote: > Anne Wilson wrote: > > On Saturday 26 Mar 2005 15:51, Simon wrote: > >>I cannot open files in order to edit them when I am in Konqueror as SU. I > >>get an error message :KDEInit could not launch 'kwrite' > >>I do have Kwrite installed. > >>Any ideas please. > >>Thanks, > >>Simon. > > > > Yes - I've no idea why it happens, but the cure is simple. In a root > > console, type > > xhost + localhost > > and all will be well again. > > > > Anne > > 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. > > Mikkel
Thank you both for your help. Regards, Simon. -- Linux Counter number 359744. http://counter.li.org/ GnuPG Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE94E2292
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________