11.3->12.1 upgrade, pwd db not rehashed after adding ntpd user?
Tomas Engin
tomas.engin at teleservice.net
Thu Dec 12 10:15:33 UTC 2019
I've had similar problems with 11.3 and 12.0 (unsure of patchlevel) when adding users using Ansible. Had to add a step in our script that runs pwd_mkdb after each user is added to make sure it is reliable.
________________________________________
From: owner-freebsd-stable at freebsd.org <owner-freebsd-stable at freebsd.org> on behalf of Doug McIntyre <merlyn at geeks.org>
Sent: December 12, 2019 05:50
To: Mel Pilgrim
Cc: freebsd-stable at freebsd.org
Subject: Re: 11.3->12.1 upgrade, pwd db not rehashed after adding ntpd user?
On Wed, Dec 11, 2019 at 05:44:27PM -0800, Mel Pilgrim wrote:
> I used freebsd-update to upgrade several 11.3-p5 systems to 12.1-p1.
> The etc update process added the ntpd/ntpd user/group. It showed the
> line changes in the plaintext passwd/group files, but the process
> appears to omit the pwd_mkdb step.
>
> After the upgrade, ntpd fails to start:
>
> # service ntpd start
> Starting ntpd.
> su: unknown login: ntpd
> /etc/rc.d/ntpd: WARNING: failed to start ntpd
>
> Running the usual pwd_mkdb command fixes the issue.
I've had varied results with the same thing from 11.2 to 12.1.
Sometimes it works, oftentimes it does not. pwd_mkdb does fix it
up, but would be nice to not have to do that.
_______________________________________________
freebsd-stable at freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
More information about the freebsd-stable
mailing list