I need to set-up the dev-environment to be able to debug the backend of an application in Eclipse.
There is a front-end (runnable under user1) and a back-end (runnable under user2). Each user has its own login with its own filesystem (under /home/user1 and /home/user2).
If debugging was not needed, I could just run the backend from the regular terminal session (where you can easily log in as user2) - and that works just fine. But that's not really a debugging (if you browse through log files).
To see the data (supplied by back-end) in the front-end, I obviously have to be logged in as user1. And that means I cannot access the full filesystem under /home/user2, which is what the backend needs.
I did come up with some "sort-of" an workaround, but I consider it extremely dirty - as a root I change the attributes of the whole directory /home/user2 to be readable by all. To say that I don't like it would be a major understatement. It might not be a big issue for dev machine, except you have to do it again and again for all new files that are created during runtime - which you have to do for each debug session (which is not very productive, but as a worst case - doable).
So, the question is - how can I get a terminal session with full GUI logged in as a different user than is already logged in on the same machine ? Sort-of like a XMing (but that is not a solution, since it requires another Windows machine) or RemoteDesktop (except I would be logging in to the same machine).
Simply put - two GUI desktop sessions for two different users (of same machine) running in parallel. From the googling I did, it seems like CentOS does not really support that - but I may be easily missing here something.