On Linux, how do I run a GUI app from a terminal shell under a different login?
Posted
by Eric
on Stack Overflow
See other posts from Stack Overflow
or by Eric
Published on 2010-04-26T21:22:41Z
Indexed on
2010/04/26
22:13 UTC
Read the original article
Hit count: 200
Here's the deal. I logged into a Linux box (CentOS, but that shouldn't matter) as user A. I had to build a program as user B, so I started up a terminal shell, logged into that shell as B, and built it. When I try to run the app, I get this message:
"connect to ":0.0" refused by server"
Most likely because the current X Windows session is owned by user A, and as B, I don't have permissions to access A's stuff.
Is there a correct way to solve this. Any incorrect ways?
© Stack Overflow or respective owner