Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2005 19:10:01 +0200
From:      Hexren <me@hexren.net>
To:        Marty Landman <MLandman@face2interface.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: lost root passwd
Message-ID:  <14725057050.20050416191001@hexren.net>
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> <c9850fd711881a4e278ad260e1030f8b@secure-computing.net> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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 ?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14725057050.20050416191001>