Remove files more securely |
|
|
Ordinarily when you remove a file, the data is not actually destroyed.
If you have sensitive data, you may want to be sure that recovery is not possible by actually overwriting the file with non-sensitive data.
$ shred -n 100 -z secret (Overwrites the file secret 100 times)
How to crypt a text file
(To encrypt) $ openssl des3 -salt -in secretfile.txt -out cryptedfile.des3
(To decrypt) $ openssl des3 -d -salt -in cryptedfile.des3 -out decryptedfile.txt
Sticky bit
To prevent users from deleting each others files on a directory where they have the write permission, set the sticky bit on the directory:
$chmod o+t directory
|