Password Expire Message

Does anyone know if the default message displayed when a users password has expired can be changed? I am just assuming the message below is the default one. If so please tell.

Using username "justinxx".
  justinxx@160.23.12.44's password:
  WARNING: Your password has expired.
  You must change your password now and login again!
  Changing password for "justinxx"
  justinxx's Old password:
  

Thanks.

I doubt it can be changed easily as it will most probably hard coded into some library. I did a search on all libraries in /usr/lib and found following - seems exactly yours is not with them, but the AIX message with the leading digit/error code is with them. The lib in which it was found is marked afterwards each block with a leading -->. This was done on an a plain AIX 7.1 box:

krb5_lib_password_expired
--> /usr/lib/drivers/krpc.ext
User password has expired
User password has expired
--> /usr/lib/libpam.a
Defines the maximum time (in weeks) beyond the maxage value that a user can change an expired password.
Defines the maximum time (in weeks) beyond the maxage value that a user can change an expired password.
Defines the maximum time (in weeks) beyond the maxage value that a user can change an expired password.
--> /usr/lib/nls/msg/en_US/artexcat.cat
1831-549  Your password has expired.
Your nisplus password has expired.
--> /usr/lib/nls/msg/en_US/cmdnfs.cat
User password has expired
--> /usr/lib/nls/msg/en_US/libpam.cat
3004-609 Your password has expired.
"3004-326 Your password has expired, but your password has not reached
3004-327 Your password has been expired for too long.
3004-332 Your password has expired.
--> /usr/lib/nls/msg/en_US/libs.cat
User password is expired and only system administrator can change it.
--> /usr/lib/nls/msg/en_US/usrck.cat
       Invalid password, password has expired.
--> /usr/lib/nls/msg/en_US/virtmgr_cli.cat
 Also, if the user's password has expired, the login will fail
--> /usr/lib/objrepos/fix.vc
Your password has been expired for too long.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has expired.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has expired.
--> /usr/lib/security/KRB5
Your password has been expired for too long.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has expired.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has expired.
--> /usr/lib/security/KRB5_64
Your password has expired.
Your password has expired, you have %d grace logins remaining.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has been expired for too long.
Your password has expired. Please choose a new password.
Your password has expired, but your password has not reached
--> /usr/lib/security/LDAP
Your password has expired.
Your password has expired, you have %d grace logins remaining.
Your password has been expired for too long.
Your password has expired.
Your password has expired.
Your password has been expired for too long.
Your password has expired. Please choose a new password.
Your password has expired, but your password has not reached
--> /usr/lib/security/LDAP64
Your password has been expired for too long.
Your password has expired.
Your password has been expired for too long.
    expired too long, must be password administrator
Your password has expired. Please choose a new password.
Your password has expired, but your password has not reached
--> /usr/lib/security/LOCAL
Your password has been expired for too long.
Your password has expired.
Your password has been expired for too long.
    expired too long, must be password administrator
Your password has expired. Please choose a new password.
Your password has expired, but your password has not reached
--> /usr/lib/security/LOCAL64
Your NIS password has expired.
--> /usr/lib/security/NIS
Your NIS password has expired.
--> /usr/lib/security/NIS_64
Your password has been expired for too long.
Your password has been expired for too long.
Your password has expired. Please choose a new password.
--> /usr/lib/security/PAM
1 Like

Zaxxon,

Thanks for the time and effort put into this reply. I appreciate the information.

Justin