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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to