Michael Salmon said:
Timothy Metz wrote:
Since we have a current thread on X-Sessions......
How can I enable root to run programs on another user's xsession? You know, the connection refused by display 0:0 crap....
Strangely enough all security measures seem to be crap until one is bitten, one of the reason's that M$ is so user friendly. I personally don't like xhost, apart from it being rather crude it also affects tk's send function. Assuming that your user name is kalle and your home is /home/kalle then the following will always work provided that /home/kalle isn't remote mounted:
In bourne shell
DISPLAY=:0 XAUTHORITY=/home/kalle/.Xauthority export DISPLAY XAUTHORITY
I usually use sudo and I set these variables automatically when I become root.
I just use ssh for everything. Even where I used to su in as root I've gotten into the habit of doing a "ssh root@localhost" instead. It does all the xauth and DISPLAY magic automatically and it's more secure besides. It's not so big a deal on a single box, but I've got 3 systems at home and several at work, separated by the internet and firewalls that block X. ssh is my friend! :) -John -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/