From owner-freebsd-questions@FreeBSD.ORG Sat Apr 16 17:10:05 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F5D16A4CF for ; Sat, 16 Apr 2005 17:10:05 +0000 (GMT) Received: from helium.webpack.hosteurope.de (helium.webpack.hosteurope.de [217.115.142.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A50D43D41 for ; Sat, 16 Apr 2005 17:10:04 +0000 (GMT) (envelope-from me@hexren.net) Received: by helium.webpack.hosteurope.de running Exim 4.34 using asmtp helo=hexren.steenbuck.net) id 1DMqny-00082K-3X; Sat, 16 Apr 2005 19:10:02 +0200 Date: Sat, 16 Apr 2005 19:10:01 +0200 From: Hexren X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <14725057050.20050416191001@hexren.net> To: Marty Landman In-Reply-To: <6.2.0.14.0.20050416124420.03a0bed0@mail.face2interface.com> References: <6.2.0.14.0.20050225125247.02e6d948@mail.face2interface.com> <20050225222750.GA59300@osiris.chen.org.nz> <6.2.0.14.0.20050226210252.01e3f710@mail.face2interface.com> <20050227043219.GA28882@osiris.chen.org.nz> <6.2.0.14.0.20050227114521.02df9eb0@mail.face2interface.com> <20050227182510.GB44504@osiris.chen.org.nz> <6.2.0.14.0.20050416124420.03a0bed0@mail.face2interface.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: lost root passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hexren List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 17:10:05 -0000 > I have a relatively new 5.2 installation and have forgotten the root pw, > although I can log on as a member of group wheel. > Not sure how to fix this situation. > 1. /etc/master.passwd has perm's of 0600 so afaik can't change this > except as root > 2. rebooting from the installation CD then selecting single user mode > throws me directly into /stand/sysinstall; from there selecting the reset > root pw option is consistently ignored > 3. rebooting into single user mode from the HD, after entering > # mount -t ufs -a > ... > # passwd > the response is > passwd: pam_chauthtok(): error in service module > Anyway I can fix this? > Marty --------------------------------------------- Have you tried not vipw in order to directly manipulate the /etc/master.passwd file ?