On Thu, Apr 23, 2015 at 04:59:21AM +0000, Toby Corkindale wrote:
> find -type f crypted -exec rewrite_file \{\} \;
> where rewrite_file does something like
> cp $FILE tmp_file
> rm $FILE
> mv tmp_file $FILE

if you're going to do something like this then use 'cp -a' to preserve
file ownership, group, permissions, and timestamps.

otherwise you'll find everything owned by root.root with permissions
set according to your umask, and a timestamp of now. this is precisely
what you DO NOT want and something that's extremly difficult and tedious
to fix without either a good backup or a reinstall (if the files being
copied are system/package files)

craig

-- 
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to