home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / sysv386 / 16384 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.5 KB  |  31 lines

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