AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  maxage=0 but password still expires?

    Posted Fri February 18, 2011 12:09 PM

    Originally posted by: SystemAdmin


    Hi all, long time *nix guy, but new to AIX here.

    I have an account whose maxage is set to zero, but it appears the password has expired?

    AIX 7.1 (7100-00-01)

    1. lsuser -a maxage dbuser
    dbuser maxage=0
    1. grep -p dbuser passwd
    dbuser:
    password = fakeabc123fake
    lastupdate = 1297948414

    1. perl -le 'print scalar localtime 1297948414'
    Thu Feb 17 08:13:34 2011
    1. date
    Fri Feb 18 12:06:18 EST 2011
    #

    Any ideas? Bug in AIX 7.1? Something more mundane?

    Thanks,
    Mark
    #AIX-Forum


  • 2.  Re: maxage=0 but password still expires?

    Posted Fri February 18, 2011 01:38 PM

    Originally posted by: dave-e


    looks to me like someone changed the password even though he/she was not forced to change it. I believe that lastupdate just tracks the date/time that the password was changed not when/if it expired
    #AIX-Forum


  • 3.  Re: maxage=0 but password still expires?

    Posted Sun February 20, 2011 10:18 AM

    Originally posted by: SystemAdmin


    dave-e is right,

    lastupdate filed tell you the time of the password was last changed, here's the full description:

    lastupdate: Specifies the time (in seconds) since the epoch (00:00:00 GMT, January 1, 1970) when the password was last changed. If password aging (the minage attribute or the maxage attribute) is in effect, the lastupdate attribute forces a password change when the time limit expires. (See the /etc/security/user file for information on password aging.) The passwd and pwdadm commands normally set this attribute when a password is changed. The value is a decimal integer that can be converted to a text string using the ctime subroutine.

    and here's the url http://bit.ly/g6hHx9

    __________________________________________
    Whenever you find yourself on the side of the majority,
    it is time to pause and reflect. (MARK TWAIN)
    AixCraft
    #AIX-Forum


  • 4.  Re: maxage=0 but password still expires?

    Posted Wed March 02, 2011 01:08 PM

    Originally posted by: SystemAdmin


    Looks like someone changed the password on the account, but not in the WebSphere server using that account to talk to DB2, and the account ended up being locked.
    #AIX-Forum