From owner-freebsd-questions@FreeBSD.ORG Sat Jul 7 09:26:54 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DEBAC16A469 for ; Sat, 7 Jul 2007 09:26:54 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (darklight.org.ru [194.186.18.14]) by mx1.freebsd.org (Postfix) with ESMTP id 99A7613C484 for ; Sat, 7 Jul 2007 09:26:53 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l679QVmc002324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 7 Jul 2007 13:26:32 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l679QUd2002323; Sat, 7 Jul 2007 13:26:30 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Sat, 7 Jul 2007 13:26:30 +0400 From: Yuri Pankov To: Zbigniew Szalbot Message-ID: <20070707092630.GA1027@darklight.org.ru> References: <661da47eebc86c4118f855e4bf13eb10@szalbot.homedns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (darklight.org.ru [127.0.0.1]); Sat, 07 Jul 2007 13:26:32 +0400 (MSD) Cc: Freebsd questions Subject: Re: adding password for root 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: Sat, 07 Jul 2007 09:26:55 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 07, 2007 at 11:15:41AM +0200, Zbigniew Szalbot wrote: > Hello, >=20 > On Sat, 7 Jul 2007 10:48:52 +0200, Zbigniew Szalbot > wrote: > > Hello, > >=20 > > Not sure how it came about but I just realized that my for new FBSD > > installation root user is without a password. When I log in remotely and > > want to use chpass to add a password for user root I am presented with = vi > > editor in which I guess I could theoretically insert it. But this proce= ss > > was always interactive. How should I add a password for user root (remo= te > > login as root is disabled). Do I need to access that box physically and > > type it on the console or can I set it remotely? >=20 > Stupid me. Instead of waiting for your advice I went ahead and entered a > password in the vi editor, then saved. Unfortunately, this password is not > accepted when I su. Is there any hope for me other than reinstallting the > whole system? >=20 > Thank you! >=20 > --=20 > Zbigniew Szalbot >=20 You'll need physical access. Boot into single user mode, and you shall be able to change password with `passwd`. Don't forget to `mount -a`. HTH, Yuri --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGj1xGeoAklVFrLdgRAv0aAJ9G5nj7Q31qfEGZPEXGf+SSuNT8WwCePFAV CN2RDxzCwUd6rCvbgNidSwg= =p2DH -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--