[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wer loescht /tmp?



Jim Knuth <info@brainwaste.de> writes:
> #!/bin/sh
> find /tmp/* -type f -mtime +3 -exec /bin/rm -v {} \;

Achtung, das sollte man nicht im laufenden Betrieb mit potentiell
übelwollenden Nutzern tun: wenn man nicht sehr genau aufpaßt, ist so
etwas immer für symlink-Attacken anfällig.

Thomas Jahns
-- 
"Computers are good at following instructions,
 but not at reading your mind."
D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9



Reply to: