Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: X11 forwarding after su'ing

From: Peter <pk(at)q-leap.com>
Date: Tue Apr 29 2003 - 16:08:27 EDT

Hello,

this is getting more and more obscure, I have to interfere...

  1. to modify the .Xauthority file use the program called xauth. look at the sshd(8) manpage, there is a sample script close to the end, that gives you an idea how to use it.
  2. make sure you never ever use the xhost program, except `xhost -' I am glad nobody suggested it.
  3. why not use ssh -X -l <thotheruserIwantedsuto?> <thehost>?
  • You can also use ssh -X -l <thotheruser> localhost after you logged in <theotherhost> DISPLAY will be set for you if X11Forwarding is enabled in your ssh config files.

    then you do not use `su' at all and you don't have to worry about setting DISPLAY, or lost environment, or copying files around.

    cheers,

            Peter

    -- 
    Peter Kruse 
    Q-Leap Networks GmbH
    phone: +497071-703171, mobile: +49172-6340044
    
    Received on Tue Apr 29 16:53:17 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:58 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library