lost root passwd

Hexren me at hexren.net
Sat Apr 16 10:10:05 PDT 2005


> 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 ?



More information about the freebsd-questions mailing list