Where can i change default root password?
so even after reset it would default to different password than 'opnsense'?
thanks
Are you running a live version of OPNsense perhaps?
From the docs: https://docs.opnsense.org/manual/install.html
To invoke the installer login with user installer and password opnsense
After installing the software on a local drive you will be asked to set/change your root password.
Bart...
thank you,
what i mean is actually after installation.
Change the default password the shell script 3) resets to...
In the UI: System > Access > Users.
is there a way to change from CLI?
Quote from: michaelgo on October 06, 2021, 12:29:33 PM
is there a way to change from CLI?
Connect to the console, option 3
Login via SSH, and if you are using an interactive shell for your user, invoke `opnsense-shell` first. That gives you the familiar console menu.
Actually, /usr/local/etc/config.xml holds the default configuration in case of factory reset, but that is option (4). Simply replacing this configuration file with any other config.xml makes that the factory reset default with users, passwords and other configurations set accordingly.
Option (3) does not set "opnsense" as the password as you can input your own.
Cheers,
Franco
@franco
thank you so much, this is the answer i've been looking for
is it bcrypt encoded in config.xml?
Ye but any sort of password hash in proper format will work. You can just add a new user with the desired password and look at /conf/config.xml to copy it from.
Cheers,
Franco