Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
change default root password
« previous
next »
Print
Pages: [
1
]
Author
Topic: change default root password (Read 9557 times)
michaelgo
Jr. Member
Posts: 52
Karma: 1
change default root password
«
on:
October 06, 2021, 08:39:36 am »
Where can i change default root password?
so even after reset it would default to different password than 'opnsense'?
thanks
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: change default root password
«
Reply #1 on:
October 06, 2021, 10:12:49 am »
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...
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: change default root password
«
Reply #2 on:
October 06, 2021, 10:16:22 am »
thank you,
what i mean is actually after installation.
Change the default password the shell script 3) resets to...
Logged
Patrick M. Hausen
Hero Member
Posts: 6816
Karma: 572
Re: change default root password
«
Reply #3 on:
October 06, 2021, 11:33:56 am »
In the UI: System > Access > Users.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: change default root password
«
Reply #4 on:
October 06, 2021, 12:29:33 pm »
is there a way to change from CLI?
Logged
bartjsmit
Hero Member
Posts: 2017
Karma: 194
Re: change default root password
«
Reply #5 on:
October 06, 2021, 01:44:05 pm »
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
Logged
Patrick M. Hausen
Hero Member
Posts: 6816
Karma: 572
Re: change default root password
«
Reply #6 on:
October 06, 2021, 03:58:43 pm »
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.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: change default root password
«
Reply #7 on:
October 07, 2021, 08:02:36 am »
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
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: change default root password
«
Reply #8 on:
October 07, 2021, 10:56:19 am »
@franco
thank you so much, this is the answer i've been looking for
Logged
michaelgo
Jr. Member
Posts: 52
Karma: 1
Re: change default root password
«
Reply #9 on:
October 07, 2021, 12:14:42 pm »
is it bcrypt encoded in config.xml?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: change default root password
«
Reply #10 on:
October 07, 2021, 01:20:22 pm »
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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
change default root password