[sllug-members]: Environment/Path help

Andrew GIlmore agilmore at wirelessbeehive.com
Tue Dec 12 12:25:48 MST 2006


On Tue, 2006-12-12 at 11:56 -0700, Lamont R. Peterson wrote:
> On Tuesday 12 December 2006 10:52am, weales at xmission.com wrote:
> > Ok, I've been using *nix for over six years (and I feel like a total
> > n00b for asking this question), but I need to know how to "source" my
> > root user environment variables ($PATH) after I su.
> 
> Don't "su", run "su -" and everything will be much better.

I sometimes attempt to run "su" instead in an effort to get xauth
settings correct. It usually doesn't work. :(

Is there any other way outside of ssh root at host or xauth add <xauth key>
to get X applications working for root when you log in as yourself
first?

I'm thinking of sudo up2date as one example of something that I'd like
to work. How about if the user isn't root, but postgres for example? I'd
like to do this without using sudo.

Andrew



More information about the sllug-members mailing list