[Bug 227589] Large dates in account expiration corrupt passwd entry

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 17 20:26:53 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227589

            Bug ID: 227589
           Summary: Large dates in account expiration corrupt passwd entry
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: preynold.freebsd at gmail.com

Using chpass, add an account expiration of a large date. e.g. January 1, 2119
and save. Using chpass again, attempt to fix the date to something more
reasonable. e.g. January 1, 2019. When editing a date other than the one
originally entered is displayed. For the above example it shows November 24,
1982. Changing the date to January 1, 2019 and saving fails. Error messages
displayed:
chpass: entry inconsistent
chpass: pw_copy: Invalid argument

Workaround: zero out the expiration field for the given user using vipw. chpass
now works again.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list