"grep" not working

David Bandel david.bandel
Thu May 17 10:38:55 PDT 2007


On 5/17/07, Net Llama! <netllama at linux-sxs.org> wrote:
> On Thu, 17 May 2007, Bill Campbell wrote:
> > On Thu, May 17, 2007, Net Llama! wrote:
> >> On Thu, 17 May 2007, David Bandel wrote:
> >>> Here's why I personally _never_ allow anyone (especially root) to have
> >>> "." in the PATH, and any personal directories ($HOME, $HOME/bin) last.
> >>>
> >>
> >> How do you prevent someone from running "export PATH=$PATH:." ?
> >
> > Linux/Unix is a system for adults, not children, so there's no
> > way to protect people from their own stupidity.  You may be able
> > to cure ignorance, but you can't fix stupid.
>
> Exactly, which is why I don't understand how David claims thath he
> prevents it.

If you read what the original poster found, it was only when he used
`su -` picking up the users' environment -- the user had no chance to
enter export PATH=.:$PATH, so it was in the users' rc files.  In
/etc/skel, I link rc files to those in /etc/ which they can't change.

Again, you can't protect them completely from their own stupidity, but
most users are blithely unaware there even are rc files.  So forcing
them to go out of their way to remove a link and put in their own rc
files effectively prevents silliness in 95% or more of the cases.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto



More information about the Linux-users mailing list