From owner-freebsd-questions@FreeBSD.ORG Sat Apr 16 17:35:59 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 5A7C016A4CE for ; Sat, 16 Apr 2005 17:35:59 +0000 (GMT) Received: from smtp812.mail.sc5.yahoo.com (smtp812.mail.sc5.yahoo.com [66.163.170.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 04FDA43D2D for ; Sat, 16 Apr 2005 17:35:59 +0000 (GMT) (envelope-from krinklyfig@spymac.com) Received: from unknown (HELO smogmonster.com) (jtinnin@pacbell.net@64.173.27.15 with plain) by smtp812.mail.sc5.yahoo.com with SMTP; 16 Apr 2005 17:35:58 -0000 From: Joshua Tinnin To: freebsd-questions@freebsd.org Date: Sat, 16 Apr 2005 10:35:55 -0700 User-Agent: KMail/1.8 References: <6.2.0.14.0.20050225125247.02e6d948@mail.face2interface.com> <20050227182510.GB44504@osiris.chen.org.nz> <6.2.0.14.0.20050416124420.03a0bed0@mail.face2interface.com> In-Reply-To: <6.2.0.14.0.20050416124420.03a0bed0@mail.face2interface.com> X-Face: "u-%.52Z_uQCP'Vdj{95/n*(sgAAm`F/p'b0zo%-DuBTdZ*qW!!/idDBRjkFfJD[Qe&>_2 <}OGsEY~)n?NywZRi9xm-jH_VPg"8nTSzo:r8;U3oTQz|@z)|>%i+MRY2Y#>s~X`sV$&t" AkQ^U3rJIFCU?]cC'F&fY4#Jf-}?7x MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200504161035.55854.krinklyfig@spymac.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit cc: Marty Landman Subject: Re: lost root passwd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 17:35:59 -0000 On Sat 16 Apr 05 09:57, Marty Landman wrote: > I have a relatively new 5.2 installation You should probably install 5.3-RELEASE if at all possible, or 4.11-RELEASE (though 6.x is soon to be the STABLE branch). 5.2 is no longer supported, and it wasn't a production release. 5.3 is the first "true" release of the 5.x branch - 5.4 will be released very soon, incidentally. I'm not terribly familiar with the errors you're getting, so I'm not sure, but I don't think it's related to your particular release (something might be up with pam?), though in general you're running unsupported software. Try: % sysctl kern.securelevel If it's anything but -1, and if you have kernsecurelevel_enable="YES" in your /etc/rc.conf you might have problems ... More below ... > 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 Did you do # mount -u / ? > ... > # passwd Try: # passwd root > the response is > > passwd: pam_chauthtok(): error in service module > > > Anyway I can fix this? Here's some info about PAM: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/pam-config.html I'm not seeing pam_chauthtok() in the list of FreeBSD PAM modules: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/pam/pam-freebsd-modules.html ... but that's a bit over my head ... - jt