Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!compuram!pgd From: pgd@bbt.se (P.Garbha) Newsgroups: comp.unix.questions Subject: Re: 2 passwd system Message-ID: <1990Jul10.085137.16179@bbt.se> Date: 10 Jul 90 08:51:37 GMT References: <201@adam.adelaide.edu.au> Organization: The Bhaktivedanta Book Trust Lines: 16 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? > You can get the login.c program from the freed bsd-sources. You have to customize it a little for your system, but still it is a very much better basis to start to work from, than to write login from scratch. Xenix allows you to call any other program instead of login, via an entry in /etc/gettydefs, but i have heard that other systems have not. A man gettydefs should tell you how it is on your system. I have replaced /etc/login with a customized version of BSD login, and I am happy with it.