From: MERC::"uunet!CRVAX.SRI.COM!RELAY-INFO-VAX" 23-FEB-1993 18:47 23-FEB-1993 18:47:00.00 To: Info-VAX@KL.SRI.COM CC: Subj: Re: Is there a way to clear the password history ? In article <1993Feb23.143928.5511@tc.cornell.edu>, william@fractl.tn.cornell.edu writes: > > I there a way to clear the password history using sys$setuai ? I know > I can set the login flag dispwdhis but this does not acomplish my intent. > We have student accounts that are used over and over again by different > classes from year to year and I would like to be able to clear the password > histories at the end of each year. Any ideas ? Since the VMS password history file is simply an indexed file with key 0 equal to the username, it should be trivial to write a Fortran program to delete the record. The records map is as follows: STRUCTURE /PWDHIS/ UNION MAP CHARACTER * 32 username STRUCTURE pwdent (100) INTEGER * 4 entry (2) INTEGER * 4 change (2) END STRUCTURE END MAP MAP CHARACTER * 1632 str END MAP END UNION END STRUCTURE Thanks for this code fragment go to whoever sent it to me a while ago when I wanted to display the password history records for a given user. Unfortunately, I forget who it was that sent it so I can't give the credit where it's due. -- Ed Wilts, BC Systems, 4000 Seymour Place, Victoria, B.C., Canada, V8X 4S8 EWilts@Galaxy.Gov.BC.CA Office: (604) 389-3430 Fax: (604) 389-3412