From owner-freebsd-questions@FreeBSD.ORG Wed Dec 24 21:05:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A5CF1065673 for ; Wed, 24 Dec 2008 21:05:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3A4578FC56 for ; Wed, 24 Dec 2008 21:05:40 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-14-53.dynamic.qsc.de [92.196.14.53]) by mx02.qsc.de (Postfix) with ESMTP id D228716C0E9F; Wed, 24 Dec 2008 22:04:41 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id mBOL4aGU001771; Wed, 24 Dec 2008 22:04:36 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 24 Dec 2008 22:04:35 +0100 From: Polytropon To: Lowell Gilbert 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> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Franck Royer , freebsd-questions@freebsd.org Subject: Re: empty root password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 21:05:40 -0000 On Wed, 24 Dec 2008 13:18:49 -0500, Lowell Gilbert wrote: > Franck Royer 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, ...