home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!mudos!mju
- From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
- Subject: Re: Dialup Passwords
- Message-ID: <BxJxo0.MMI@mudos.ann-arbor.mi.us>
- Date: Wed, 11 Nov 1992 12:35:58 GMT
- References: <3059@bsu-cs.bsu.edu>
- Organization: The Programmer's Pit Stop, Ann Arbor MI
- Lines: 20
-
- In article <3059@bsu-cs.bsu.edu> nosilla@bsu-cs.bsu.edu (Andrew J. Templin) writes:
- >How do I set the password for this? I can find nothing in the documentation
- >(just like Farrow said), and I am at a loss on how to do this.
-
- The passwords in /etc/d_passwd are in the same format as passwords in
- /etc/passwd or /etc/shadow: a two-character "salt" value, followed by
- the 11-character ciphertext of the password. You can write a simple
- program that, given a salt and a plaintext password, will call
- crypt(3) and print the results, and then use this program to generate
- the encrypted passwords. Or, you can create a dummy user, change
- their password to your desired dialup password, then cut-and-paste
- their password from /etc/shadow into /etc/d_passwd. Don't forget to
- remove the dummy user when you're done, or you'll have a nice little
- security loophole.
-
- --
- Marc Unangst, N8VRH | "There are two ways to solve this problem:
- mju@mudos.ann-arbor.mi.us | the hard way, and the easy way. Let's start
- | with the hard way."
- | - W. Scheider, from a Physics lecture
-