home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!apple!apple!netcomsv!resonex!zenon
- From: zenon@resonex.com (Zenon Fortuna)
- Newsgroups: comp.sys.hp
- Subject: Re: Password Creation Problem
- Keywords: passwd
- Message-ID: <1992Jul24.004509.26979@resonex.com>
- Date: 24 Jul 92 00:45:09 GMT
- References: <1992Jul23.030159.3955@hp9000.csc.cuhk.hk>
- Sender: Zenon Fortuna
- Organization: Resonex Inc., Sunnyvale CA
- Lines: 31
-
- In article <1992Jul23.030159.3955@hp9000.csc.cuhk.hk> a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
- >Hi all,
- >
- >Hope that this's not an FAQ :)
- >
- >We're going to create thousands of accounts on our HP 817. We're going
- >to assign initial passwords to these accounts. However, since passwd
- >doesn't accepts parameters or input from pipe, we've input the passwords
- >manually :(
- >
- >Would anyone pls help ?
-
- May be to put into the password field just a ",." string, to trigger the
- password aging mechanism ? This will force the user to set the password
- after the first login.
-
- Another way would be to use a crypt(3C) to generate the encrypted password
- string, e.g.
-
- main(argc, argv)
- char *argv[] ;
- {
- char crypt() ;
- puts( crypt( argv[1] ), "aa" ) ;
- }
-
- execute: a.out valid_password_string
-
- and to put the resulted 13-char string into the password file with the sed(1).
-
- -Z.
-