[Pkg-shadow-devel] [pkg-shadow-Bugs][313570] chage reports an incorrect date for last password change

pkg-shadow-bugs at alioth.debian.org pkg-shadow-bugs at alioth.debian.org
Sun May 20 14:02:04 UTC 2012


Bugs item #313570, was changed at 12/03/2012 20:14 by Nicolas FRANÇOIS
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=313570&group_id=30580

>Status: Closed
Priority: 3
Submitted By: Christopher Plummer (strmer15-guest)
Assigned to: Nobody (None)
Summary: chage reports an incorrect date for last password change 
Category: None
Group: None
>Resolution: Wont Fix


Initial Comment:
If I create a new user after midnight GMT in my local time zone, the /etc/shadow file has a value for days since the epoch of last password change which is for tomorrow.  When I run 'chage -l newuser', it reports the Last password change as the next day.

i.e.

> date
Mon Mar 11 22:11:37 EDT 2012
> useradd fakeUser
> chage -l fakeUser
Last password change                                                : Mar 12, 2012
Password expires                                                       : never
Password inactive                                                       : never
Account expires                                                         : never
Minimum number of days between password change     : 0
Maximum number of days between password change    : 99999
Number of days of warning before password expires       : 7

I'm running shadow-utils 4.1.4.3-13.fc16 on my Fedora box with kernel 3.2.9-1.fc16 on a 64-bit machine.

----------------------------------------------------------------------

>Comment By: Nicolas FRANÇOIS (nekral-guest)
Date: 20/05/2012 16:02

Message:
The number of days is counted according to EPOCH in UTC.

chage can only report the date in UTC (otherwise there would be multiple dates to be reported).

This time is not meant to be so precise, I do not think the chage report should be overcomplicated to include multiple date with time.

It could be reported in chage output that the date is UTC, but even this might induce more confusion than needed.

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411478&aid=313570&group_id=30580



More information about the Pkg-shadow-devel mailing list