Date: Wed, 24 Dec 2008 22:04:35 +0100 From: Polytropon <freebsd@edvax.de> To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> Cc: Franck Royer <royer.franck@gmail.com>, freebsd-questions@freebsd.org Subject: Re: empty root password Message-ID: <20081224220435.a5996adf.freebsd@edvax.de> In-Reply-To: <44abalcu7q.fsf@lowell-desk.lan> References: <4952707A.7070609@free.fr> <44abalcu7q.fsf@lowell-desk.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Dec 2008 13:18:49 -0500, Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> wrote:
> Franck Royer <royer.franck@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.
--
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081224220435.a5996adf.freebsd>
