Different actions on different passwords?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I guess this is more of a general linux question than a fedora one, but since I use fedora...

A friend of mine (a Windows afficionado, but not experienced with linux), and I were talking about recent examples where folk were required by the court to provide the password for their laptop.  That lead to a beer-induced thought problem:

In linux, is it possible to dictate two different actions upon login with different passwords?  For instance, given an encrypted file dat.txt, could one have a login such that:

login: billo
Password: Password1
Action: bring up shell

login: billo
Password: Password2
Action: delete dat.txt, then bring up shell

Assume some arbitrary level of encryption.  I guess with just file encryption  (e.g. dat.gpg) it's not a loging problem.  So assume there's encryption of the home directory or of the /home partition.

I couldn't think of any.  There are a thousand ways to delete a file on login, of course, but I couldn't think of a way to accept two different passwords.  The closest I could come up with was to have two different accounts with the same userid but different usernames in /etc/password, with a different initial startup for each. But that would provide two different usernames...


billo
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux