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?