"grep" not working

Bill Campbell linux-sxs
Thu May 17 11:56:13 PDT 2007


On Thu, May 17, 2007, David Bandel wrote:
>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.

Actually ``su -'' picks up the root login environment.  Omitting
the ``-'' keeps the user's environment.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``Never do your enemy a minor injury.''
    - Machiavelli



More information about the Linux-users mailing list