Nope - you need to use the correct file generated by the running X secession. Note, this is taken care of automaticly for you when you run "su -" in a terminal in the running X secession. It is also taken care of by ssh when you used ssh -Y to connect to a remote box from an xterm on your machine. Where you run into problems is when you log in at the cli as root, and then try and run a program that requires an X display, or when you ssh to another machine without X forwarding enabled.
Oh yes, chances are, the correct cookie file is in the /tmp directory somewhere.
Mikkel
I can't find that...is any other solution? Or can anybody send me his file
or something...