OPNsense Forum

English Forums => General Discussion => Topic started by: sanscorp on June 07, 2022, 10:36:31 PM

Title: Reset password root ZFS does not work.
Post by: sanscorp on June 07, 2022, 10:36:31 PM
I'm trying to reset the root password via Single user mode but I get a read only error when following the tutorial.
Bitwarden messed up, synced wrong and now I need to reset my password.

Root is also "disabled" via the system --> access --> users panel.
When I try a reset of my other (main) user I also get the error that the file system is read only.

The system is up-to-date.
What is the correct procedure here?

Thank you in advance!
Title: Re: Reset password root ZFS does not work.
Post by: meyergru on June 07, 2022, 11:42:06 PM
The mount must be done somewhat differently with ZFS than with UFS, see here:

https://protectli.com/kb/how-to-reset-the-opnsense-root-password/?intsrc=eu
Title: Re: Reset password root ZFS does not work.
Post by: sanscorp on June 08, 2022, 05:58:28 AM
I followed those instructions in the first place :)
Title: Re: Reset password root ZFS does not work.
Post by: franco on June 08, 2022, 08:38:39 AM
We don't recommend single-user mode but it's obvious that you should mount your system read-write in order to succeed.

We do recommend using the installer media which has a built-in recovery tool.


Cheers,
Franco
Title: Re: Reset password root ZFS does not work.
Post by: sanscorp on June 10, 2022, 04:19:52 PM
Obviously.

How do I mount it as read write? I do not want to use the install media to recover a lost password.

I have gained access now, trough the history function of bitwarden, but it would be nice to know for the next time.
Title: Re: Reset password root ZFS does not work.
Post by: Patrick M. Hausen on June 10, 2022, 05:06:29 PM
mount -t zfs -u -o rw /