From owner-freebsd-questions@freebsd.org Sat Mar 16 23:02:37 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 2D98B1541061 for ; Sat, 16 Mar 2019 23:02:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF8BE80F10 for ; Sat, 16 Mar 2019 23:02:35 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.193.208.84]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPA (Nemesis) id 1MhToz-1gaebb33J5-00eetM; Sun, 17 Mar 2019 00:02:32 +0100 Date: Sun, 17 Mar 2019 00:02:32 +0100 From: Polytropon To: B J Cc: freebsd-questions Subject: Re: Upgraded 11.2 -> 12.0, ntpd Won't Start Message-Id: <20190317000232.58fbb60b.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Gpy4AUaL5dsxftU/ILDYlr3QZa5LWSi+acLkbTQ2MbXBaqpZzzf JyYByflXnHV11AG64MZyeju4GYd99Yc0U6hZNkmi3BYf8EY4bIW7wz1gUrjlUGxAUm58q90 THSub5kfcaOCyNdUjEMjDJfYZE065Xq5rBVG3o+L4aFiHIx+c7yZv+0RViGDTeUFGiyc5FG rp2Bjb4M6ZE7ijp0+nXUg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:CtLnub4DB9s=:j/OixDMvzvoVqYZOxMXDnp Zr2QIqFIBNYO/pGBily5l25ZBUKrp9E2Kd4YGyST2neuuK5nAUny5UOD7KtQFnnoqZIFxZVGy pocW7QMbgeRNMgaVPJbl5/HJ400ANZxLQeb1PFu5/kN/4Zs/AgyPJ6pJ9XHswOLZTkaRI+QQv ptxnUsS49dFTGcUTnLToTWa4VEM7PgOmUGZE76LORAZWLUoPhhHSgBUD57ZqWZZnF/azriblV FhZ3YKZUvqco3ofwyhiVTTU11ZC4us8vuOM/343yN7OCmOjsabKvVRNn6tAfJRHAf/OKaOgpS IgA7wq9brTk1ZE5CtMhGsfWvWMseaMG6b9YXjQF/uaZCjSM2eIxA/LCYLn2YTKCVey+wQhpNK ot/abo4i1tWmZJGQuUXuMq01yWlt/tsjHNm62bf4kvaIz0i2FriJAdz3/z2Xh3SVefHfZBNsZ vSrTicFKPEYlzCD98x+mrXlMOMMPURPzfBBpsc1OcYLkM4DpHMqHWqY+JH/SaqeAvi81GDfUg 1ija/B9GNBp+tWy2YD5IaAItrP0lvBZOZNVSEgkKArJ5svd4+2/jAXG3bq5cU3sV2gQ8zH0d0 EUHc2SmYGTP5+2R3+Az8ddpJ0+6QLolgOanBEq9ZcCAbGSys5b/XOXAEmRQJANs59zI8H4ZPD wayiuN+8A7tKfh5ke8nAFePwOWCWLJjJ+HBufCfqRZ5KN3SewkYRdfXAX50dd7Sl0fyETody3 RkFL2T8b14fspsTSwa/SEuSyoy63qmM/VKkpJ1H5jyThq/ydP4gw7DSZTRc= X-Rspamd-Queue-Id: CF8BE80F10 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.42 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx01.schlund.de]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[84.208.193.92.zen.spamhaus.org : 127.0.0.10]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.68)[0.678,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.92)[0.921,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.995,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[73.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.44)[ip: (0.47), ipnet: 217.72.192.0/20(0.03), asn: 8560(1.70), country: DE(-0.01)] 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:02:37 -0000 On Sat, 16 Mar 2019 22:39:07 +0000, B J wrote: > 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? The .pid file contains the process identification ("PID") refering to the ntpd process. If you run the command # ps aux | grep ntpd you should see that number in the 2nd column. However, the error message seems to indicate a permission problem for that file, i. e., the ntpd process cannot (re)write that file. Check the permissions: # ls -l /var/db/ntp/ntpd.pid It should have the owner and group set correctly for the "new" environment (the one with the dedicated ntpd user account). It could also be a problem with the directory the file resides in. Check that one with: # ls -ld /var/db/ntp Again, make sure the owner and group (as well as the permission bits) are set correctly. > 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. The ntpd service will be started, but the process file that probably contains a wrong PID could lead to problems if you want to restart the service. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...