[Tipz] su w/ X credentials

Ari Pollak ari at ccs.neu.edu
Wed Sep 24 18:28:15 EDT 2003


How many times have you sshed into a machine and tried to run an X
application as another user (such as root) after su'ing, but been unable
to because of "wrong authentication?" Your troubles are over!
No longer do you have to actually log in as the target user. Just use
the following handy-dandy script, called sux, in place of su, which will
automatically transfer all of the appropriate X credentials and allow
you to execute any X application of your choosing.

The script can be found at: http://fgouget.free.fr/sux/
It's already included in the SuSE Linux distribution.

Of course, sudo usually solves this problem anyway, but sometimes sudo
just doesn't do what you want.


More information about the Tipz mailing list