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.... Thanks Tim -- 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/
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....
If the other session was started with "startx -- :1", then the DISPLAY for that session is "yourhostname:1". In your default session the display is ":0" So, in in the display (session) ":1" do $ xhost +yourhostname in the display ":0" do $ export DISPLAY=yourhostname:1 $ xprogram or $ xprogram -display yourhostname:1 Rafael -- 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/
OK, I can get and X program running on a remote HP-UX box and displaying on my local Linux PC. Now, Only the Linux server box seems to be able to run the X programs. I have NCD X-Terms and I have not yet discovered how to get the remote system to communicate with the X-Terms. The DISPLAY env variable seems to get its value from the X-Term's name "xt1", "DISPLAY=xt1:0". I seem to be missing a piece to get the remote X program to be displayed on xt1:0. Any ideas? TIA, Jim Sabatke "Rafael E. Herrera" wrote:
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....
If the other session was started with "startx -- :1", then the DISPLAY for that session is "yourhostname:1". In your default session the display is ":0"
So, in in the display (session) ":1" do
$ xhost +yourhostname
in the display ":0" do
$ export DISPLAY=yourhostname:1 $ xprogram
or $ xprogram -display yourhostname:1
Rafael
-- 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/
-- Jim Sabatke SuSE 6.3 Linux Kernel - 2.2.13 "Ignorant people think it's the noise which fighting cats make that is so aggravating, but it ain't so; it's the sickening grammar they use." Mark Twain -- 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/
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. /Michael -- 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/
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/
participants (5)
-
jim.sabatke@mchugh.com
-
jmgrant@primenet.com
-
Michael.Salmon@uab.ericsson.se
-
raffo@neuronet.pitt.edu
-
tmetz@frankfurt.netsurf.de