Re: X11 forwarding after su'ing
From: Peter (pk_at_q-leap.com)
Date: 04/29/03
- Previous message: Greg A. Woods: "RE: X11 forwarding after su'ing"
- In reply to: Philipp Strozyk: "Re: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 22:08:27 +0200 To: "Philipp Strozyk" <Philipp.Strozyk@epost.de>
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>?
4. 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 <pk@q-leap.com> Q-Leap Networks GmbH phone: +497071-703171, mobile: +49172-6340044
- Previous message: Greg A. Woods: "RE: X11 forwarding after su'ing"
- In reply to: Philipp Strozyk: "Re: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]