Jason S. on Fri, 3 Sep 1999 11:12:54 -0400 (EDT)


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

Re: [Plug] RE: Path


If you just use "su", your environment doesnt reset. Like, $DISPLAY 
will still be set, you path doesnt change... do  "su - root" or just
"su -" and you'll be fine. To login as a user and have their .bashrc
sourced, do "su - username".

J.

When I grow up, I wanna be more like me.
I had a clue. I didn't like it. I took it back and exchanged it for an
attitude.  

On Fri, 3 Sep 1999, Nick R wrote:

> Hmm, you were right about those paths only being included for the superuser, 
> only when I do an su w/ing an nxterm window this doesn't seem to apply. That 
> leaves me with a question:
> If I do su w/ the -l argument, will that give me everything that logging 
> into a terminal as root will give me, or will I still have some kind of 
> hidden limitations and small differences that could become a pain?
> 
>         -Laktar, a.k.a. Nick Rosen, laktar.dyndns.org
> 
> 
> If I Ever Became An Evil Overlord:
> 57. Before employing any captured artifacts or machinery, I will carefully
> read the owner's manual.
>         -- Peter's Evil Overlord List, 
> http://www.eviloverlord.com/lists/overlord.html
> 
> >From: Alexander John Batyi <bud@buxcom.net>
> >Reply-To: plug@lists.nothinbut.net
> >To: plug@lists.nothinbut.net
> >Subject: Re: [Plug] RE: Path
> >Date: Fri, 3 Sep 1999 08:06:33 -0400 (EDT)
> >
> > > Global setting should go in /etc/profile and per user settings
> > > in $HOME/.profile while the defaults are probably
> > > hardcoded in /bin/login
> >
> >I just found a file called login.defs.  The hardcoded PATH
> >in /bin/login is /bin:/usr/bin and /etc/login.defs supersedes this
> >with /usr/local/bin:/bin:/usr/bin for normal users (ENV_PATH) and
> >more for superuser (ENV_SUPATH).  /etc/profile ADDS to this by
> >including the existing PATH (PATH=$PATH:...) and tacking on
> >some more directories.
> >
> >
> >_______________________________________________
> >Plug maillist  -  Plug@lists.nothinbut.net
> >http://lists.nothinbut.net/mail/listinfo/plug
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug