passwd

I have to change more then 200 User at once
the password (security-dday).
The programm passwd will answers (new password + again)
How can i do this in a script?

thanks for answers

Doing this you need to change the shadow

See also the SUN man page:
file.Oracle Help Center

Hi,

You can right a small script using expect (expect automates interactive applications). For more information about expect have a look: another user script
You'll find a link in this topic.

Good luck

On AIX you need to change the user file

*

  • expires Defines the expiration time for the user account.
  •           Possible values: a valid date in the form MMDDHHMMYY or 0.
    
  •           If 0 the account does not expire.  If 0101000070 the account
    
  •           is disabled.  The range for YY is:
    
  •                   00 - 38    years 2000 thru 2038
    
  •                   39 - 99    years 1939 thru 1999

Hopfully this will be helpfull:
http://expect.nist.gov/example/mkpasswd.man.html

______________________________________________
SCSA

I will test this with test-user
:slight_smile: many thanks