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/>
References:  <bug-232921-227@https.bugs.freebsd.org/bugzilla/>

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

Michael La=C3=9F <bevan@bi-co.net> changed:

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

--- Comment #3 from Michael La=C3=9F <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 dri=
ft
and the .pid file.

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

--=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-232921-227-6eAfQy0vHO>