Re: The best recommendation for allowing "su" in X
this is the setup I use. It makes possible to use both
'sudo -H -s'
I have the following code in /root/.bashrc
if [ $SUDO_USER ]; then
sudo -H -u $SUDO_USER xauth extract - $DISPLAY | xauth merge -
This works fine even with the home directory of the user on an nfs mount,
because root does not read the .Xauthority file.
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact email@example.com