From owner-freebsd-current@freebsd.org Sun Jul 22 16:34:22 2018 Return-Path: Delivered-To: freebsd-current@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 D66BC104FBBA for ; Sun, 22 Jul 2018 16:34:22 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6428D7AA90 for ; Sun, 22 Jul 2018 16:34:22 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-RoutePath: aGlwcGll X-MHO-User: 11558ddb-8dcd-11e8-904b-1d2e466b3c59 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 11558ddb-8dcd-11e8-904b-1d2e466b3c59; Sun, 22 Jul 2018 16:34:14 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w6MGYCYR010988; Sun, 22 Jul 2018 10:34:12 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1532277252.1344.105.camel@freebsd.org> Subject: Re: ntpd as ntpd user question From: Ian Lepore To: bob prohaska Cc: Pete Wright , FreeBSD Current Date: Sun, 22 Jul 2018 10:34:12 -0600 In-Reply-To: <20180721220925.GA40238@www.zefox.net> References: <5b90c49f-4616-9ef7-28a1-6445137245ef@nomadlogic.org> <1532191655.1344.80.camel@freebsd.org> <4b7acbd2-0230-345c-4370-24a72d0b492a@nomadlogic.org> <1532193285.1344.83.camel@freebsd.org> <20180721174722.GA40167@www.zefox.net> <1532196850.1344.87.camel@freebsd.org> <20180721220925.GA40238@www.zefox.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2018 16:34:23 -0000 On Sat, 2018-07-21 at 15:09 -0700, bob prohaska wrote: > On Sat, Jul 21, 2018 at 12:14:10PM -0600, Ian Lepore wrote: > > > > > > I can't see any way that installkernel would lead to the complaint > > about the ntpd user not existing; that check is tied to the > > installworld target. > > > My mistake. I was sleepy and in a hurry. The error message was in > installworld > and my attempt to adduser ntpd concluded with an error: > Locked     : yes > OK? (yes/no): yes > pw: Bad id 'ntpd': invalid > adduser: ERROR: There was an error adding user (ntpd). > On reboot the old ntpd set the clock and I thought all was well. > > The failure is a little surprising, is ntpd a reserved name? > > The machine is re-running buildworld/installworld from a clean start, > so presumably it'll halt over the same error again. When that > happens,  > what's the simplest way to recover? Mergemaster is a big hammer, > something > less comprehensive might suffice, even manual editing of files.   > > There's minimal customization on the machine, basically /etc/fstab,  > /etc/rc.conf and /etc/passwd. Nothing else of real value, so if I > kill  > it in the attempt it won't be a disaster. > > > Thanks for waking me to my blunder... > > bob prohaska >   The important changes that mergemaster would handle are:   - add ntpd user, id 123   - add ntpd group, id 123   - set ntpd_flags="" in /etc/defaults/rc.conf   - install the new /etc/rc.d/ntpd You can add the user by doing vipw and pasting the ntpd line from /usr/src/etc/master.passwd, IMO easier than doing adduser and answering all the questions. -- Ian