Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Apr 2017 17:01:03 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        mexas@bris.ac.uk
Cc:        FreeBSD - <freebsd-questions@freebsd.org>
Subject:   Re: cannot change password for an ordinary user
Message-ID:  <14E19429-3B94-4DF4-8246-053729D6E14B@mac.com>
In-Reply-To: <201704132135.v3DLZgS2008709@mech-as222.men.bris.ac.uk>
References:  <201704132135.v3DLZgS2008709@mech-as222.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 13, 2017, at 2:35 PM, Anton Shterenlikht <mexas@bris.ac.uk> =
wrote:
> [ ... ]
> I decided to check first, and got:
>=20
> # pwd_mkdb -C /etc/passwd
> pwd_mkdb: corrupted entry
> pwd_mkdb: at line #3
> pwd_mkdb: /etc/passwd: Inappropriate file type or format
>=20
>=20
> Should I be worried?

Yes.  Run vipw and fix line 3.

> And how can change my ordinary user's password?
>=20
> I can change the root password fine, tried and checked.

root is usually the first entry; it's likely that fixing line 3 will let =
you change the user's password.

Regards.
--=20
-Chuck=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14E19429-3B94-4DF4-8246-053729D6E14B>