Re: gui progs as root in x under normal user?
> On Mon, 17 May 1999 19:18:48 +0200 Peter Granroth 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
>
Just curious...I can do su root from a user's X session, but I have nothing
like that in root's .bashrc, nor in /etc/profile. (I do use bash.) Is this
happening through some other mechanism, or am I missing a file?
Steven C. Martin
Reply to: