2 passwd system

Jay A. Konigsberg jak at sactoh0.UUCP
Wed Jul 11 22:40:39 AEST 1990


>In article <201 at adam.adelaide.edu.au> mferrare at adelphi.ua.oz.au.oz.au (Mark Ferraretto) writes:
>>I want to set up my login procedure to make users use two passwords to login
>>instead of one.
>>
>>The problem I have is if I rewrite /bin/login how to I get getty to recognise
>>my login procedure instead of /bin/login apart from overwriting it (I don't
>>have sources)?  Is rewriting /bin/login the best way to go about this?
>>

A simple solution, if /etc/profile is executed, is to put a second login
as the first command in /etc/profile. This has the added benifit of being
able to exclude some logins from the second password requirment (like uucp
logins). It also allows you to code in shell using crypt(1) (still storing
the passwords encrypted) or in C, your choice.


-- 
-------------------------------------------------------------
Jay @ SAC-UNIX, Sacramento, Ca.   UUCP=...pacbell!sactoh0!jak
If something is worth doing, its worth doing correctly.



More information about the Comp.unix.questions mailing list