[vox-tech] Re: Inheriting env variables when you do a su

D & E Radel vox-tech@lists.lugod.org
Thu, 24 Apr 2003 10:15:18 +1200


> > su process_user -c "SPIFFY_VAR=$SPIFFY_VAR"
> >
> > Is there a way for process_user to inherit the value of SPIFFY_VAR when I
> > do the su so that I don't have to redeclare them constantly?

I use the 'sux' script instead. Not only does it allow access to X, but
transfers many settings also. This one is more powerful than the SuSE script by
the same name: http://fgouget.free.fr/sux/