>> cat /dev/null > /$foo where $foo = file
>> 
>> its hacky but it works :)
>
>or just:
>
>> $file
>
>the redirect under most shells truncates a file if there's 
>nothing to the left of it.

Actually this may not be as secure as you think. All it probably does is
set the file length to zero, but the data blocks will still be on disk,
though liable to be claimed by another file soon. So a trawl through
the disk might find the blocks. And it seems data recovery techniques
can drag out data from the disk. However short of your user taking over
the root account or kidnapping your disk for data recovery...
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to