Help recovering password (Root on ZFS install)

Hello

I need help recovering my root password. Problem is I did a root on ZFS install and the normal method I know (single user boot, mount -u, mount -a and passwd) isn't working.

I get a
Code:
passwd: pam_chauthtok( ): error in service module
error message.

I did some searching but couldn't find anything related to my problem; if this has already been answered please forgive me and point me to the right direction. I set up this little server over 2 years ago and it's been running flawless eversince, only problem is that I forgot the password.

Please help.
Thanks in advance.
 
A scrub shouldn't be necessary if the pool is ok otherwise.

Try these commands in single user mode:

# adjkerntz -i
# mount -u /
# /etc/rc.d/hostid start
# zfs mount -a

And then reset password:

# passwd



Hope this helps.
 
kpa said:
A scrub shouldn't be necessary if the pool is ok otherwise.

Try these commands in single user mode:

# adjkerntz -i
# mount -u /
# /etc/rc.d/hostid start
# zfs mount -a

And then reset password:

# passwd



Hope this helps.

This worked perfectly! Thanks a lot!
 
Back
Top