From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: bug#31467: switching from ntp to openntpd, openntpd fails to start Date: Wed, 16 May 2018 10:38:21 +0300 Message-ID: <20180516073821.GA1239@macbook41> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIr1g-0003jU-27 for bug-guix@gnu.org; Wed, 16 May 2018 03:39:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIr1b-0002ae-4z for bug-guix@gnu.org; Wed, 16 May 2018 03:39:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fIr1b-0002aY-0Q for bug-guix@gnu.org; Wed, 16 May 2018 03:39:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fIr1a-0007l2-Kl for bug-guix@gnu.org; Wed, 16 May 2018 03:39:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIr15-0003SM-9z for bug-guix@gnu.org; Wed, 16 May 2018 03:38:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fIr10-0002Qe-EQ for bug-guix@gnu.org; Wed, 16 May 2018 03:38:31 -0400 Received: from flashner.co.il ([178.62.234.194]:39014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fIr10-0002Pr-7h for bug-guix@gnu.org; Wed, 16 May 2018 03:38:26 -0400 Received: from localhost (46-117-130-5.bb.netvision.net.il [46.117.130.5]) by flashner.co.il (Postfix) with ESMTPSA id 8E14C400EF for ; Wed, 16 May 2018 07:38:24 +0000 (UTC) Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31467@debbugs.gnu.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Currently `ntp' from `ntp' runs as ntpd:nobody, and `ntp' from `openntpd' runs as root:root. ntp from ntp uses /var/empty as it's home directory, which is owned by ntpd:nobody. When openntpd's ntp starts up, it gives a permission error on its directory, /var/empty. When I changed the directory's owner with `sudo chown -v root:root /var/empty' then openntpd's ntp started working as expected. Two possible solutions come to mind: * Make openntpd run as user ntpd. This keeps the user separation working, requires tweaking to openntpd's service (probably). * Recreate /var/empty at boot, either as part of the start-up of ntp/openntpd, or as a tmpfs. Neither ntp or openntpd store data that needs to persist across reboots, so this might be worth doing anyway. This would also prevent any suprises in the future like what I came across. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlr73+oACgkQQarn3Mo9 g1Gl0w/9H8qV0/Goe3CjSadZmOVERb3tg6YDjtxJ0hyJMulGL/cWwm8bU5VM/Dcs 2376xCz94i53lx6h6j+K2rDnJHI+3gccclK02/kpWDVvGX9eb0RGHlUtigD9/SWA 3AvYXGMwOQ/gyVIPdHq/9R/CLB/XbQZ7ohG2kOXnM79Tybfl9Fg6+Y52Vi2Pe7ln 95YSEWjhzaB11I/cdPI7+c6ZMoF+A45gGSTTbZb70eeixvWU4FVP1vWP7VKv0/hX x5cM0Ww5sQfhprFRlvyCV5nRcUcHYxqOodW1k73jZuD9zgl3dYuXwa3yL3dOGhiQ qyUxhLs/OBlqNxiYCcvDx6At9w+sW5FyuCYCCNBaY0mp4pkoRKjSUBPVxuvfaTNt JqPpBpkDKWsOR9Jfqmz/D5x1Wt9Y8JSv6kFYxx8oxtr3Hd88vmNf9VAhIXF2dzB7 93FqDCwYj9xWpVUJ4XyWlT4aA1QpKBStwFETcY/mBv30i6JXGMYnxlKrR7BztoeF zgZbPW6ObTq74YaHf1lM96x3JD6ebk9/BR+Keh2Xv30u+mR31Gkwxn3vHnW0cii7 ENc2GgY+F7KJS7J35hFnGRk+mE7YKvG/VHRgq40UqB6Af7KcXCviBfZrJHu2hpK4 qGN66vdCrNujaUezJaKMHXdgKpCfk1R395caF191Lxpwz9niFx8= =vfNw -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--