empty root password

Polytropon freebsd at edvax.de
Wed Dec 24 21:05:40 UTC 2008

On Wed, 24 Dec 2008 13:18:49 -0500, Lowell Gilbert <freebsd-questions-local at be-well.ilk.org> wrote:
> Franck Royer <royer.franck at gmail.com> writes:
> > It's not a "how can I recover my root password" but something more weird.
> >
> > I copied my root filesystem from a partition to another with rsync -Pia.
> > But since that moment, I don't need any password to log myself as root
> > or to do a "su" from a user who is in the wheel group.
> >
> > I did some passwd on root, but that changes nothing. And my normal user
> > password wasn't affected.
> >
> > What can I do ?
> Run pkd_mkdb(8) by hand first, to make sure your password files are updated.
I think its pwd_mkdb /etc/master.passwd. Check the presence of the
files /etc/passwd, /etc/master.passwd and /etc/group to be really
sure, check their content.

Don't forget, as mentioned:

> [And see if that fixes your problem by itself.]  Once you have done that:
> Running chpass(1) *should* work.
> Since it didn't, I suggest looking at the password file.
> Use vipw(8) for that, and see if there is anything in the password field
> for the root password.

>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list