Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!usc!ucsd!pacbell.com!pacbell!sactoh0!jak From: jak@sactoh0.UUCP (Jay A. Konigsberg) Newsgroups: comp.unix.questions Subject: Re: 2 passwd system Message-ID: <3502@sactoh0.UUCP> Date: 11 Jul 90 12:40:39 GMT References: <201@adam.adelaide.edu.au> <1990Jul10.085137.16179@bbt.se> Reply-To: jak@sactoh0.UUCP (Jay A. Konigsberg) Organization: SAC-UNIX, Sacramento, Ca. Lines: 20 >In article <201@adam.adelaide.edu.au> mferrare@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.