Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2015 20:39:17 -0600
From:      Paul Smith <paul.j.smith0@gmail.com>
To:        Paul Schmehl <pschmehl_lists@tx.rr.com>
Cc:        Mark Felder <feld@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Problem with freebsd-update corrupting /etc/passwd
Message-ID:  <CACoaAtM2w5DvhDmcrJLjS3icPxD9aghGMRqkV0-B52FwPYFVkA@mail.gmail.com>
In-Reply-To: <0904D22E43B1B6A9D578E512@Pauls-MacBook-Pro.local>
References:  <DDFA21B09874CB3B989F4507@Pauls-MacBook-Pro.local> <1440100869.935695.361630681.4EA48DB2@webmail.messagingengine.com> <0904D22E43B1B6A9D578E512@Pauls-MacBook-Pro.local>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> The top three lines of the file (that I renamed .bak because it was
> corrupted) are:
>
> # cat /etc/passwd.bak
> # $FreeBSD: releng/10.2/etc/master.passwd 256366 2013-10-12 06:08:18Z rpaulo
> $
> #
> root:*:0:0:Charlie &:/root:/bin/csh
>
> # pwd_mkdb -C /etc/passwd.bak
> pwd_mkdb: corrupted entry
> pwd_mkdb: at line #3
> pwd_mkdb: /etc/passwd.bak: Inappropriate file type or format
>

I thought you ran pwd_mkdb on /etc/master.password and not /etc/password.

>From the man page for pwd_mkdb:

Regenerate the password database after manually editing or replacing
the password file:
/usr/sbin/pwd_mkdb -p /etc/master.passwd

Paul



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACoaAtM2w5DvhDmcrJLjS3icPxD9aghGMRqkV0-B52FwPYFVkA>