[Bug 232921] freebsd-update upgrade does not execute pwd_mkdb for ntpd

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 12 20:58:22 UTC 2018


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

Michael Laß <bevan at bi-co.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bevan at bi-co.net

--- Comment #3 from Michael Laß <bevan at bi-co.net> ---
I also encountered this issue doing a binary upgrade and it can cause a bit of
trouble:

If pwd_mkdb is not run, ntpd will still run as root since the user ntpd is
unknown. On the very first start, the rc.d script will move the drift file to
/var/db/ntp and also place the .pid file there. Both files will be owned by
root at this point. If you now run pwd_mkdb to create user ntpd, the daemon
won't be properly started next time since user ntpd cannot write to the drift
and the .pid file.

This can be solved by simply removing the files or fixing the permissions but
it may be worth noting this in the release notes or upgrade instructions.

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


More information about the freebsd-bugs mailing list