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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.