From owner-freebsd-questions Wed Jun 24 19:26:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA24800 for freebsd-questions-outgoing; Wed, 24 Jun 1998 19:26:32 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ultra1.dreamscape.com (ultra1.dreamscape.com [206.64.128.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA24684 for ; Wed, 24 Jun 1998 19:25:46 -0700 (PDT) (envelope-from aaron@csh.rit.edu) Received: from thud.homenet (ub29.dreamscape.com [206.114.185.126]) by ultra1.dreamscape.com (8.8.5/8.8.4) with ESMTP id WAA28579; Wed, 24 Jun 1998 22:25:16 -0400 (EDT) Received: (from aaron@localhost) by thud.homenet (8.8.7/8.8.7) id WAA00308; Wed, 24 Jun 1998 22:25:25 -0400 (EDT) (envelope-from aaron) Message-ID: <19980624222524.34067@homenet> Date: Wed, 24 Jun 1998 22:25:24 -0400 From: Aaron Jeremias Luz To: Roman Katsnelson Cc: questions@FreeBSD.ORG Subject: Re: root passwd Reply-To: aaron@csh.rit.edu References: <35915453.F1326936@graphnet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <35915453.F1326936@graphnet.com>; from Roman Katsnelson on Wed, Jun 24, 1998 at 03:32:36PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jun 24, 1998 at 03:32:36PM -0400, Roman Katsnelson wrote: > Eek! I forgot the root password! > > Well, actually I didn't forget it, I set it, but then the system sorta > crashed and now it doesn't recognize it anymore. So I went to the FAQ > and it said to do this: > > (boot up in single user mode) > > mount -u / > passwd root > mount -a > exit > > i have two things about this: > > a)it doesn't work -- i get a "passwd not found" command -- anything I > can do except reinstall from scratch? (full system from FTP -- i'd > rather not :-) You must first mount the /usr filesystem where passwd lives. The sequence of commands I would use is "/sbin/mount -a", "/usr/bin/passwd", "exit". A couple points to note: 1) you may need to type in the full pathname of the commands depending on how you setup your shell profile and login classes (That is, login classes do not apply to single user mode. Only shell profiles do.) 2) the FAQ needs to be updated. > and > > b) if it DOES work -- itsn't it a serious security issue that anyone > with the access to the FAQ (which is every literate person in the > world!) can get root password? i know that it's probably not, but i > would just like to be explained WHY not, if possible. Nah, in single user mode, user interaction with the computer is limited to the console device which is either a serial terminal or the computer's monitor and keyboard. If you're that close to the computer, you could probably give it a good swift kick and do more damage than any break-in over the network. :-) Aaron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message