Results 1 to 2 of 2

Thread: xforwarding under sudo

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    1

    xforwarding under sudo

    I am using xforwarding to bring up a totalview display on my PC in hopes of attaching totalview to a running process. However, after logging on to my host linux platform, I need to sudo to another user under which my appliation is running. After sudo, I type totalview to bring up the "new program" pane. However, it never gets xforwarded back to my PC. If I type totalview as my original logon user, I get the pane so the problem seems to be related to my sudo under another user. Is there any way that the xforwarding can be correctly defined in the sudo session so that that I can use totalview?

  2. #2

    Re: [stockerr] xforwarding under sudo

    Maybe...

    It sounds like a permissions issue. What might be simplest is in whatever X server you have on the PC side, enter a 'xhost +' which allows anyone to connect an X window. Usually they warn against this sine anyone can open an X window on your machine, but in practice I don't think I've seen it done. You should also check your DISPLAY value before you do the sudo, and see what it is afterwards. The sudo may be changing the DISPLAY value, depending on how you do it.

    Cheers,
    Pete Thompson
    TotalView Customer Services

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •