<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 11:25 PM, Bill Oliver <span dir="ltr"><<a href="mailto:vendor@billoblog.com" target="_blank">vendor@billoblog.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
In linux, is it possible to dictate two different actions upon login with different passwords? </blockquote></div><br><br></div><div class="gmail_extra">Short answer: no.<br><br></div><div class="gmail_extra">Longer answer: in computing almost anything is possible if you really want to achieve it. Given that on Unix-style systems, including Linux, the login program can be changed, you can modify the source to do what you want. Of course you'll need to have superuser privileges to install it in place of the system standard. Note that doing this may well open a can of worms, e.g. you might have to modify the format of the password file (and hence the library routines that access it), possibly fiddle with SElinux settings, etc. etc.<br>
<br></div><div class="gmail_extra">If the conditions are relaxed slightly you can get a partial solution using the standard login: write a Shell startup script (.profile or whatever) that allows the user to discriminate between the two modes, e.g. by using a timeout, detecting the initial state of the Shift (or Control or whatever) key etc., in a way that is hopefully non-obvious to an observer. Probably not reliable enough for serious use.<br>
<br></div><div class="gmail_extra">Conclusion: better look for some other way to cover your tracks, and note that a forensic investigation can be carried out without having you log in at all.<br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">poc<br> </div></div>