home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8478 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.2 KB

  1. Path: sparky!uunet!olivea!apple!apple!netcomsv!resonex!zenon
  2. From: zenon@resonex.com (Zenon Fortuna)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Password Creation Problem
  5. Keywords: passwd
  6. Message-ID: <1992Jul24.004509.26979@resonex.com>
  7. Date: 24 Jul 92 00:45:09 GMT
  8. References: <1992Jul23.030159.3955@hp9000.csc.cuhk.hk>
  9. Sender: Zenon Fortuna
  10. Organization: Resonex Inc., Sunnyvale CA
  11. Lines: 31
  12.  
  13. In article <1992Jul23.030159.3955@hp9000.csc.cuhk.hk> a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
  14. >Hi all,
  15. >
  16. >Hope that this's not an FAQ :) 
  17. >
  18. >We're going to create thousands of accounts on our HP 817.  We're going
  19. >to assign initial passwords to these accounts.  However, since passwd
  20. >doesn't accepts parameters or input from pipe, we've input the passwords
  21. >manually :(
  22. >
  23. >Would anyone pls help ?
  24.  
  25. May be to put into the password field just a ",." string, to trigger the
  26. password aging mechanism ? This will force the user to set the password
  27. after the first login.
  28.  
  29. Another way would be to use a crypt(3C) to generate the encrypted password
  30. string, e.g.
  31.  
  32.    main(argc, argv)
  33.    char    *argv[] ;
  34.    {
  35.     char    crypt() ;
  36.     puts( crypt( argv[1] ), "aa" ) ;
  37.    }
  38.  
  39.    execute: a.out valid_password_string
  40.  
  41. and to put the resulted 13-char string into the password file with the sed(1).
  42.  
  43.     -Z.
  44.