[Bug 229487] Password database out of sync after binary update from 10.3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 3 10:18:18 UTC 2018


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

            Bug ID: 229487
           Summary: Password database out of sync after binary update from
                    10.3
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: grembo at FreeBSD.org

After updating multiple machines from 10.3 to 11.2 using freebsd-update(8),
they all suffer from the same problem:

# pw useradd -n removemenow -u 3333 -g nobody -s /bin/false -h -
pw: user 'removemenow' disappeared during update

At this point removemenow is in /etc/master.passwd and I can also find traces
of it in pwd.db, yet:

# id removemenow
id: removemenow: no such user

Running

# pwd_mkdb -p /etc/master.passwd

fixes the issue, but this is quite irritating.

Also note that pwd.db has the time timestamp as master.passwd after the update
(so something got rewritten there) and it also changes after running "pw".

This is most likely a duplicate of #165954, still opening it, as it affects
11.2-RELEASE (and therefore should probably be mentioned in RELEASE ERRATA).

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


More information about the freebsd-bugs mailing list