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

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



fairfax@pclink.com wrote:
> 
> > 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?
> 

I think they were talking about starting applications as "su root" in
X.  If I get you correctly your saying you can su to root while in X,
which is normal.
hth,
kent


Reply to: