Reset Password root - Version 2.0.3
-
Hi,
On one of my installation Pfsense the root password seems to be corrupted, I tried to go through the reset mode (single user) but version 2.0.3 I have the answer "Access denied"
Thank you
-
Can you still get into the GUI?
If you can, go to Diagnostics > Command, and run:
pwd_mkdb -p /etc/master.passwd
Or if you can get to a shell with the admin user, run it there.
After you've run that, try to set the root password again using the User Manager in the GUI (edit the admin user, admin and root are the same user)
-
No, unfortunately the device is locked and the GUI too!
It would have been nice to leave a way out in case of direct access to the primer still takes a little knowledge to reset the password and if the gloves its not able to put a door between the servers and the public …
I'm starting to burn ... it's still aberrent the password no longer works and the traditional ways have been disabled in this beautiful release.
-
Nothing has been disabled like you're implying. Single user mode would work fine if the password database itself were not corrupted. (Could be your disk is failing, or just bad timing + power outage)
http://doc.pfsense.org/index.php/I_locked_myself_out_of_the_WebGUI,_help! has many suggestions for getting back in, though only the single user path would help in cases where the admin/root password is lost/corrupt and the GUI is also unavailable.
-
re-reading my previous response, I realized I wasn't all that clear.
If you can get to single user mode, from there, run
pwd_mkdb -p /etc/master.passwd
And hopefully that will repair your password database for you.
-
Apparently the drive is locked in writing :-\
-
when you boot into single user mode, do:
fsck -y -t ufs /
fsck -y -t ufs /
(yes, twice)
mount -a -t ufs
pwd_mkdb -p /etc/master.passwd