chage incorrect date parsing

Solution Verified - Updated -

Issue

Depending on the input chage silently takes wrong values:

[root@host]# chage -d '15 Jan 2013' root
[root@host]# chage -l root
Last password change                                    : Jan 15, 2013

[root@host]# chage -d 'Jan 15 2013' root
[root@host]# chage -l root
Last password change                                    : Jan 16, 2013

Environment

  • Red Hat Enterprise Linux (RHEL) 6, 7
  • shadow-utils-4.1.4.2-13.el6
  • shadow-utils-4.1.5.1-13.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content