Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2018 20:26:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 227589] Large dates in account expiration corrupt passwd entry
Message-ID:  <bug-227589-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227589

            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@FreeBSD.org
          Reporter: preynold.freebsd@gmail.com

Using chpass, add an account expiration of a large date. e.g. January 1, 21=
19
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. ch=
pass
now works again.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227589-227>