Am Freitag 23 November 2007 schrieb Billy Holmes: > Dirk Heinrichs wrote: > > No difference with "su -". I don't have any line in root's *rc files > > which set the DISPLAY. > > $ set | grep XAUTH > $ su - > # set | grep XAUTH > > notice, they will be different. > > It boils down to security. > > you can do it two ways. > > $ su - > # export XAUTHORITY=/home/$OLDUSER/.Xauthority > # xterm > > -OR- > > $ xauth extract /tmp/keys.txt $DISPLAY > $ su - > # xauth merge /tmp/keys.txt > # xterm
Sorry, but I don't get your point. How does this explain why root has a
correct $DISPLAY after using "su" or "su -"?
BTW: On another box running Ubuntu (too slow for all the compiling), using su
doesn't set $DISPLAY for root, which is the behaviour I would expect.
Bye...
Dirk
signature.asc
Description: This is a digitally signed message part.

