-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Þann fimmtudagur 01 febrúar 2001 23:43 skrifaðir þú:
Tor,
Actually.... :-)
Using xhost is way way wrong.
The correct way of doing things is:
On your local machine do
xauth list mymachine.mydomain.com:0.0
and you get a reply:
mymachine.mydomain.com:0 MIT-MAGIC-COOKIE-1
37cb47264b485cd2e24ef9421def2a83
Then, on your remote machine do:
xauth add mymachine.mydomain.com:0 MIT-MAGIC-COOKIE-1
37cb47264b485cd2e24ef9421def2a83
Thanks for putting us right, but...
Actually ;-) This is what I do over the internet from machine to machine with ssh. If I can't get that to work (e.g. on one of the WinNT machines) then I use an xhost file. Not as secure I know but better than I was originally told to do by a colleague ("just do xhost + and it'll work).
Tell your colleague ignorance is bliss ;-)
However, is the security thing an issue if xhost is only used for localhost?
It is a security issue if it is a multi-user machine. There exist several applications to 'listen' to the chatter of X, and they catch the keypresses themselves, so they could catch your passwords, f.ex.
Mind you, for some reason that has now stopped working for me!
Here is the scenario in a konsole window when logged on as any user: su - kwrite textfile& error message -> "kwrite: cannot connect to X server"
even after doing the xhost + localhost thing.
Suggestions?
Many thanks,
Mark
Yup, Doing "su -" unsets your $DISPLAY. But "su" without the dash keeps all your environment variables, including $DISPLAY. su - export DISPLAY=[hostname]:0.0 kwrite /where/ever/textfile & or su kwrite /where/ever/textfile & :-) - -tosi - -- ______ /---------------------------------------\ \ | Þór Sigurðsson | Tor Sigurdsson | t | | Netmaður | Network Specialist | o | |-----------------------------------------| s | | tosi@rhi.hi.is | i | ---------------------------------------/_____/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.1e-SuSE (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6efvx6mRH+PEpr2YRAqFRAJ95xsfJj9cicFIOJHLpohwdpqxQ2wCgmjs7 mG39LiKGfEkXTIxYVvfcYwQ= =FUgi -----END PGP SIGNATURE-----