Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2018 20:58:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232921] freebsd-update upgrade does not execute pwd_mkdb for ntpd
Message-ID:  <bug-232921-227-6eAfQy0vHO@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232921-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

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

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

--- Comment #3 from Michael Laß <bevan@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.

help

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