Problem with freebsd-update corrupting /etc/passwd
Paul Smith
paul.j.smith0 at gmail.com
Fri Aug 21 02:39:18 UTC 2015
>
> 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
More information about the freebsd-questions
mailing list