I'm thinking of way to protect data from stealing. Is there any way to start auto disk formatting when someone enters wrong password on login? Or when enters specific password which would trigger disk formatting?
Asked
Active
Viewed 2,360 times
2
-
This is a dangerous strategy, there are others methods to protect your data like encryption, have you considered any of these? – stephenmyall Apr 26 '12 at 14:59
-
There is similar package called suicide linux It erased my important datas :(, So dodnt touch similar packages, And this is really bad idea ,Because you are a human being and you may forget your password ,predict its result :p – Tachyons Apr 26 '12 at 15:04
-
Also look at this question on deleting files in a secure manner. By just formatting your files are all still there. – Takkat Apr 26 '12 at 15:12
-
what about specific word? imagine the scenario when someone steals your laptop and you intentionally write the keyword somewhere on laptop. Thief thinks that's it and kaboom, all gets deleted. – user1079002 Apr 26 '12 at 15:23
-
But why? Anyone with physical access to your laptop and enough motivation can just open it up physically, rip out the internal HD, jam it into an enclosure, and plug it to his own computer. Then, he'll browse through your files for as long as he wishes. Encryption prevents this scenario, and your partition's data would be inaccessible without your password. – SirCharlo Apr 26 '12 at 15:46
-
i'm just saying, if thief thinks he knows the password he will use the wrong one. btw, does encryption after installing also encrypt deleted files from recovery? – user1079002 Apr 27 '12 at 01:27
-
Have you considered that this is a really big security hole? A person can trash all your data simply by entering gibberish into the password field three times. – thomasrutter Apr 27 '12 at 07:06
-
@user1079002 What do you mean by "encrypt deleted files from recovery"? – SirCharlo Apr 27 '12 at 12:37
-
@ neon_overload I'm not concerned with that. @ SirCharlo I mean on files which are already permanently deleted and they're somewhere on the disk that is supposed to be empty space. Does encryption encrypt that also? – user1079002 Apr 28 '12 at 00:20
2 Answers
7
I'm not sure that automatically reformatting your Ubuntu partitions when a bad password is entered is a very viable means of protecting your data. What happens if you try to log in with Caps-Lock enabled by accident?
Try something along the lines of encrypting your home partition instead.
Instructions on how to encrypt your home partition after Ubuntu is installed (if you didn't opt to do so during installation) can be found here.

SirCharlo
- 39,486
-
I'm also interested in encrypting deleted files that can be recovered. Does this work for that? Where do deleted files go? because if u only encrypt home folder, what about the rest of the disk? – user1079002 Apr 27 '12 at 01:28
-
We're talking about encrypting your home partition here. This implies that your home folder is stored on a separate partition. Deleted files are stored in your home folder, under a folder named
.Trash
, if my memory serves me right.. – SirCharlo Apr 27 '12 at 03:47 -
yes, you're right about the partition, but I didn't think of deleted files, I think of permanently deleted files, ones that can be recovered with scalpel. So, they're not "transfered" to another partition? – user1079002 Apr 28 '12 at 00:17
1
Best way to securely delete files is to use for example shred
or the secure-delete tool
to overwrite the files content and Inode info a few times. Then the data really is gone and cant be recovered.

Ruediger
- 2,182