OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: the_wolf on July 14, 2017, 04:24:05 pm

Title: I turned the portal cautivo lost the password administrator
Post by: the_wolf on July 14, 2017, 04:24:05 pm
how to reset the password ?
Title: Re: I turned the portal cautivo lost the password administrator
Post by: the_wolf on July 14, 2017, 07:37:23 pm

I used this tutorial and it still doesn't reset.


http://srvfail.com/reset-freebsd-root-password/
 (http://srvfail.com/reset-freebsd-root-password/)
Title: Re: I turned the portal cautivo lost the password administrator
Post by: the_wolf on July 14, 2017, 08:00:08 pm
I got it from, just enter in single mode and mount with
mount-u /
and run su.
The screen appears to reset your password.
Title: Re: I turned the portal cautivo lost the password administrator
Post by: franco on July 14, 2017, 08:31:31 pm
Hi there,

The config.xml under /conf carries the password. The system will try to reset your attempts to get in on the next boot, because you are trying to control the FreeBSD system, not the OPNsense system.

If you hit CTRL+C during early boot you can get to the shell and use it to edit /conf/config.xml -- there is a <password> line in /usr/local/etc/config.xml that you can use to restore the old "opnsense" password, reboot cleanly and log in to change your password again to something that you will remember.

If you have secured console access, unlock the console from the GUI system administration settings to provide an easy failsafe to the system, where you can even reset the root password (option "3" or "4" I think).


Cheers,
Franco
Title: Re: I turned the portal cautivo lost the password administrator
Post by: the_wolf on July 14, 2017, 09:18:07 pm
thank you franco
Title: Re: I turned the portal cautivo lost the password administrator
Post by: htunc on November 26, 2017, 10:15:47 pm
Hi,

I try command but,

mount -u /
mount -a
passwd

pam_chauthtok(): error in service module

not change password

Help me,