gerald_duck |
Wed 2007-07-25 10:44 |
What I had in mind was:- rm -r starts deleting stuff
- It determines that foo is a subdirectory
- A Bad Person quickly does mv foo old-foo; ln -s /home/victim foo
- rm -r descends into foo, which is now in reality the victim's home directory
- It recursively deletes everything it finds there.
I suspect the GNU version, at least, checks this hasn't happened. But I'm not sure, and I really ought to know. |
|