From owner-freebsd-questions@freebsd.org Sat Mar 16 23:16:42 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E811815415F4 for ; Sat, 16 Mar 2019 23:16:41 +0000 (UTC) (envelope-from matthias@smormegpa.no) Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com (mailrelay4-1.pub.mailoutpod1-cph3.one.com [46.30.210.185]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 27602815D8 for ; Sat, 16 Mar 2019 23:16:39 +0000 (UTC) (envelope-from matthias@smormegpa.no) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smormegpa.no; s=20140924; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=XAz9SldPsdTh34DmTAE0YOo9Zfp4f9J3noBdk9bqnUA=; b=Yqb5EOZu1L/4UDQHkhl5w6I4yZExWrZ5uhqUucMxer1uzdXIpmjWrbhHRiXuqLHL/RWie+3Buo0iy srZA/u0yN3t4lO/1sfkyZNJb7Nuj2YgmeMnrw3dudbwn5rEZLj5ZPAgkJ51ORx8UrQW+86mhgw267k nyyw89IayaRwwNl8= X-HalOne-Cookie: 2ae2868f9209ad6bb47147c9f8894cd716b31c40 X-HalOne-ID: 49945a00-483f-11e9-a598-d0431ea8bb10 Received: from picadelly.monsieur.mathieu (unknown [85.165.244.175]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 49945a00-483f-11e9-a598-d0431ea8bb10; Sat, 16 Mar 2019 23:00:26 +0000 (UTC) Message-ID: <0b43095ae814bfd99a81c773ff248217dec4e01f.camel@smormegpa.no> Subject: Re: Upgraded 11.2 -> 12.0, ntpd Won't Start From: Matthias Oestreicher To: B J , freebsd-questions Date: Sun, 17 Mar 2019 00:00:26 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 27602815D8 X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=smormegpa.no header.s=20140924 header.b=Yqb5EOZu X-Spamd-Result: default: False [2.25 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[smormegpa.no:s=20140924]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; NEURAL_SPAM_SHORT(0.81)[0.805,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[smormegpa.no]; NEURAL_SPAM_MEDIUM(0.47)[0.469,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[smormegpa.no:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[185.210.30.46.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[mx1.pub.mailpod3-cph3.one.com,mx2.pub.mailpod3-cph3.one.com,mx3.pub.mailpod3-cph3.one.com]; NEURAL_SPAM_LONG(0.24)[0.238,0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.54)[ipnet: 46.30.208.0/21(1.60), asn: 51468(1.16), country: DK(-0.04)]; ASN(0.00)[asn:51468, ipnet:46.30.208.0/21, country:DK]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Mar 2019 23:16:42 -0000 Am Samstag, den 16.03.2019, 22:39 +0000 schrieb B J: > On 3/15/19, B J wrote: > > Before I did the upgrade, I ran ntpd by putting > > > > ntpd_enable="YES" > > > > in: > > > > /etc/rc.conf > > > > Now, when I boot my computer, I get: > > > > Security policy loaded: MAC/ntpd (mac_ntpd) > > Starting ntpd. > > su: unknown login: ntpd > > /etc/rc: WARNING: failed to start ntpd > > > > The upgrade to 12.0 was done with the following: > > > > freebsd-update fetch > > freebsd-update install > > freebsd-update -r 12.0-RELEASE upgrade > > > > I restarted the machine and ran: > > > > /usr/sbin/freebsd-update install > > > > when prompted to do so. I also reinstalled all the packages and, I > > believe, ports. I didn't, however, run mergemaster or: > > > > pwd_mkdb -p /etc/master.passwd > > > > nor do I recall being prompted to do so during the upgrading process. > > (Maybe I wasn't paying attention.) > > > > Can I get ntpd to run if I ran: > > > > pwd_mkdb -p /etc/master.passwd > > > > > > Thanks to everyone who responded. Your comments and suggestions were > most helpful. > > I ran: > > pwd_mkdb -p /etc/master.passwd > > on one of my computers and rebooted it when it was done. I got the > following message in the startup output: > > ntpd[755]: pid file /var/db/ntp/ntpd.pid: Permission denied > > I checked the file and found that the file has the number 789 in it. > > By comparison, I have two systems that have fresh installations of > FreeBSD 12.0. Neither of them had the problem with ntpd that I > mentioned in my original post. I just checked the file on one of them > and found that it has the number 885. > > My question, now, is this: is the condition mentioned in the message > I got on the upgraded machine a problem? Is the difference in the > ntpd.pid files something to be concerned about? > > Meanwhile, the computer's clock appears to be running properly as I > reset my watch and the both are synchonized, so it seems that problem > has been resolved. > >From /usr/ports/updating in FreeBSD 12.0-RELEASE 20180719: New uid:gid added, ntpd:ntpd (123:123). Be sure to run mergemaster or take steps to update /etc/passwd before doing installworld on existing systems. Do not skip the "mergemaster -Fp" step before installworld, as described in the update procedures near the bottom of this document. Also, rc.d/ntpd now starts ntpd(8) as user ntpd if the new mac_ntpd(4) policy is available, unless ntpd_flags or the ntp config file contain options that change file/dir locations. When such options (e.g., "statsdir" or "crypto") are used, ntpd can still be run as non-root by setting ntpd_user=ntpd in rc.conf, after taking steps to ensure that all required files/dirs are accessible by the ntpd user. % grep ntpd /etc/group ntpd:*:123: The ntpd user is missing when you are upgrading from pre FreeBSD 12-RELEASE. Create the group and you should be fine. Regards Matthias > Thanks. > > BMJ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"