[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: The best recommendation for allowing "su" in X



this is the setup I use. It makes possible to use both
'sudo xterm'
or
'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 -
fi

This works fine even with the home directory of the user on an nfs mount,
because root does not read the .Xauthority file.

E. Kloppenburg

-- 
Ernst Kloppenburg
Stuttgart, Germany


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: