Re: cleaning up /var/tmp
Philippe Troin <phil@fifi.org> writes:
> These two problems are addressed by the Debian way of doing things:
> find . -type f -atime +3 -print0 | xargs -r0 rm -f --
> find . ! -name . -type d -mtime +1 -print0 | xargs -r0 rmdir
>
> Because we never follow symlinks, but only real files and real directories.
That can still be exploited because the real files and directories can
be replaced with symlinks.
See http://www.ultratech.net/~zblaxell/find-rm-fix.txt for a complete
analysis and a fix.
Guy
Reply to: