SSH X11 Tunnel su - lost cookie to non-root user
From: Hans (hans753_at_hotmail.com)
Date: 10/19/04
- Next message: chad_at_bluestream.org: "Re: Port forwarding terminal services (RDP) over SSH."
- Previous message: Darren Tucker: "Re: Port forwarding terminal services (RDP) over SSH."
- Next in thread: chris_at_nospam.com: "Re: SSH X11 Tunnel su - lost cookie to non-root user"
- Reply: chris_at_nospam.com: "Re: SSH X11 Tunnel su - lost cookie to non-root user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 19 Oct 2004 08:33:57 -0700
Hello,
Yes I've googled around, but didn't find the perfect solution.
I want to connect to X11 via a shh tunnel and then do a "su -
non-root-user".
What is the best way to save the cookie?
$ echo $DISPLAY
localhost:10.0
$ xauth list | grep ':10'
xserver/unix:10 MIT-MAGIC-COOKIE-1 12345678901234567896012345678901
$ su - non-root
Password:
$ export DISPLAY=localhost:10.0
How to get the cookie to the new user with xauth merge?
The real problem, how to do it automaticly.
Should I protect the cookie against other users? Or can I just copy it
to /tmp to be read by the su-user?
Greets Hans
- Next message: chad_at_bluestream.org: "Re: Port forwarding terminal services (RDP) over SSH."
- Previous message: Darren Tucker: "Re: Port forwarding terminal services (RDP) over SSH."
- Next in thread: chris_at_nospam.com: "Re: SSH X11 Tunnel su - lost cookie to non-root user"
- Reply: chris_at_nospam.com: "Re: SSH X11 Tunnel su - lost cookie to non-root user"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|