Problem with freebsd-update corrupting /etc/passwd

Regenerate the password database after manually editing or replacing the password file:

/usr/sbin/pwd_mkdb -p /etc/master.passwd