sux(1) wrapper around su which will transfer your X credentials


sux [OPTS] [-] [[username] [ARGS]]
suxterm [OPTS] [-] [username]


sux is a wrapper around the standard su command which will transfer your X credentials to the target user.

Note, suxterm forces ARGS to be 'xterm', and will try to launch an xterminal window.


 'sux user' and 'sux - user' behave just like su but transfer $DISPLAY and the X cookies.


To generate an untrusted cookie, see 'xauth'.
--timout <period>
To generate a temporary cookie for <period> seconds, see 'xauth'.
-m,-p --preserve-environment
In this case sux will override XAUTHORITY to the so that xauth does not try to use the original user's .Xauthority file (which it obviously could not do anyway due to access rights).
Just transfer DISPLAY, not the cookies. You could do this if you have already transfered the cookies in a previous invocation of sux.
Copy the cookies using xauth. This is the default method (and only method most of the time).
Instead of transfering the cookies, set the XAUTHORITY environment variable to access the original .Xauthority file. There's a couple caveats with this method. First, due to the access right issues it's only usable by root. But even then it may not work if the .Xauthority file is accessed via NFS, e.g. if the home directories are on NFS (note that this is quite dangerous already since your cookies will travel unencrypted over the network). Then, if root runs commands like xauth add/remove, the .Xauthority's ownership will belong to him. This will leave the original user in trouble as he will no longer be able to access X! So only use this option with great care. Finally, this method does not work if you also want to use '--untrusted' or '--timeout'.
specify which display to use (in case of having more than one available).


Originally written by Francois Gouget <[email protected]> Manpage written by Millis Miller <[email protected]>


Report bugs to <[email protected]>.


Copyright © 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.