0

I want to remove a folder (or write on it by shred) when a specific password is entered. I don't want to use an encrypted OS like LUKS as this link says, or destroy the whole drive as lots of people say.

I have an idea. I can use 2 passwords to login to the system. 1st one is a usual password, but when I entered the second one, system logins but runs a script as startup like:

rm -rf /address/of/folder

or:

shred -u file.txt

Is this idea possible? (Can I use 2 passwords to login?)

0 Answers0