"Panic Password" on Linux - Super User most recent 30 from superuser.com2010-03-21T05:37:15Zhttp://superuser.com/feeds/question/72164http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://superuser.com/questions/72164/panic-password-on-linux6"Panic Password" on LinuxElliot Hugheshttp://superuser.com/users/30802009-11-18T15:11:21Z2009-11-18T16:43:35Z
<p>I run Linux on my netbook with an encrypted home directory (decrypted when I log in). One idea I had (partly from Cory Doctorow's <a href="http://rads.stackoverflow.com/amzn/click/0765319853" rel="nofollow"><em>Little Brother</em></a>) was to have a password that I could enter which would login to a fake user account while performing a command (e.g trashing the contents of the disk drive or changing the encryption passwords to something random and very long).</p>
<p>Any ideas how to do this? (Answers involving obscure kernel modules etc are welcomed, though as always a nice command line utility might be a bit nicer! I especially like to have the same username but not the same password: user bob signs in with password ABC and gets logged in, but user bob signs in with password 123 and gets his stuff deleted.)</p>
http://superuser.com/questions/72164/panic-password-on-linux/72175#721753Answer by eleven81 for "Panic Password" on Linuxeleven81http://superuser.com/users/85442009-11-18T15:29:15Z2009-11-18T15:40:47Z<p>Because your post was very general and lacking in detail, my answer has to be very general and lacking in detail. Many of these steps are going to be distribution-specific.</p>
<p>In your situation, this is what I would do:</p>
<ol>
<li>Write a script that will perform the desired destruction.</li>
<li>Create a panic user account and provide the user with a password.</li>
<li>Make this user a member of the <code>wheel</code> group so his actions run like root's.</li>
<li>Set the owner of the script to be the panic user.</li>
<li>Set the permissions of the script so that it may be executed.</li>
<li>Set this user's login sequence to include running the script created in step 1.</li>
<li>Hope that you never have to log in as the panic user!</li>
</ol>
<p>Good luck!</p>