Sample Header Ad - 728x90

Forwarding X-windows through a su - session

3 votes
3 answers
5982 views
I'm trying to forward my X windows, but seems to be limited to just on session? What I'm trying to do is invoke x-applications as another user, through a sudo su -. If I know the other user's password, than this is easily resolve with: ssh -Y user@host password: ******** gedit & However, if running a user which I do not have a password (weblogic, for example): ssh –Y me@host xauth list sudo csh (now root) xauth add (last line of the xauth list above) gedit & HOWEVER, I'm having trouble allowing another user to access the x display: xauth list su – weblogic xauth add (last line of the xauth list above) gedit (see if gedit launches). This fails. I've also attempted to go direct to the to the other user via sudo: ssh –Y me@host xauth list sudo su – weblogic xauth add (last line of the xauth list above) gedit (see if gedit launches). This too fails.
Asked by leonhardtk (33 rep)
May 24, 2016, 07:44 PM
Last activity: Apr 7, 2022, 04:39 PM