From owner-freebsd-questions@FreeBSD.ORG Wed Dec 24 18:19:05 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 A4A671065670 for ; Wed, 24 Dec 2008 18:19:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3708FC0C for ; Wed, 24 Dec 2008 18:19:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 10861 invoked from network); 24 Dec 2008 18:18:55 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 24 Dec 2008 18:18:55 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id C151550820; Wed, 24 Dec 2008 13:18:51 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 15A961CC10; Wed, 24 Dec 2008 13:18:49 -0500 (EST) To: Franck Royer References: <4952707A.7070609@free.fr> From: Lowell Gilbert Date: Wed, 24 Dec 2008 13:18:49 -0500 In-Reply-To: <4952707A.7070609@free.fr> (Franck Royer's message of "Wed\, 24 Dec 2008 18\:25\:14 +0100") Message-ID: <44abalcu7q.fsf@lowell-desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: empty root password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 18:19:05 -0000 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. [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. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/