[colug-432] Prevent SU from changing CWD

Steve VanSlyck s.vanslyck at spamcop.net
Wed Mar 9 11:15:42 EST 2011


Maybe I could mishmash the su command in my .bashrc file to set the path.

----- Original Message -----
From: Jeff Stebelton <jeff.stebelton at gmail.com>
To: Central OH Linux User Group - 432xx <colug-432 at colug.net>
Date: Wed, 9 Mar 2011 08:04:48 -0500
Subject: Re: [colug-432] Prevent SU from changing CWD

> On Wed, Mar 9, 2011 at 7:14 AM, Steve VanSlyck 
<s.vanslyck at spamcop.net>wrote:
> 
> > Well that was certainly simple enough - one box of assorted items from
> > the food group "chocolate" for you!
> >
> > On Wed, 2011-03-09 at 07:11 -0500, Angelo McComis wrote:
> > > Leave off the -   The - means to emulate logging in, including cwd ~
> > > and loading the environment.
> > >
> > >
> > > - Angelo
> > >
> >
> > --
> 
> Note that if you do that, you'll need to provide absolute paths to every
> command you run, as your PATH variable won't be set..
> 
> Jeff Stebelton, GCFW GCIA GCIH CEH ESSE
> 
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
> 
> 


More information about the colug-432 mailing list