in reply to Parsing Login Scripts For Variable Assignment
Not to mention that if I had a sysadmin who was such a babysitter as to try to parse my .profile for environment vars deemed "unsuitable", I'd probably start screwing wiht 'em just for the sake of pissing them off.
Maybe a better way of dealing with it is to validate that everyone's profiles' last line is something like:
which, itself, just parsed PATH, and pulled out "." if it was there.source /etc/cleanup_profile
Of course, you've got no real way of preventing a user from logging in and typing:
[me@host me]$ PATH="$PATH:." [me@host me]$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing Login Scripts For Variable Assignment
by holo (Monk) on Dec 08, 2003 at 22:17 UTC | |
|
Re: Re: Parsing Login Scripts For Variable Assignment
by DaveH (Monk) on Dec 09, 2003 at 09:42 UTC |