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

Re: gui progs as root in x under normal user?



On Thu, May 13, 1999 at 02:32:55PM +0300, Micha Feigin wrote:
> How do i start graphical programs under X as root while I'm logged in as a
> normal user?

If you put the following in root's .bashrc (assuming you use bash),
you can start X programs when su root in a users X session:

if [ "$USER" != "root" ] ; then
    export XAUTHORITY=`eval echo ~$USER/.Xauthority`
fi
 
-- 
----------------------------------
+         Peter Granroth         +
+   mailto:granis@soke.dhs.org   +
+       http://soke.dhs.org      +
----------------------------------


Reply to: