What is a good alternative to the sux command?
I've been very sad too to see that there were no easy alternative to sux
at first, but ended with this:
In
/etc/pam.d/su
, to forward xauth keys between users when callingsu
, add:session optional pam_xauth.so
In
~olivier/.bashrc
:export $(dbus-launch)
(Not sure it is actually needed.)
And then a simple
su olivier
from my logged-in user.