I recently found myself in quite a predicate. Although I'm extremely methodic in recording all of my passwords in my password manager Wallet, somehow I missed or incorrectly entered the one for one of my Astaro WebAdmin 'admin' user logins. To further complicate the problem, I hadn't enabled the 'root' or 'loginuser' accounts for remote SSH access or set passwords for either, as this was a new install. I was pretty sure I'd have to do a reload and install of the system, but it turns out I didn't. Here is how I was able to reset the user accounts that I had forgotten and not set and recover.
- Shutdown the firewall an connect a screen and keyboard, or in my case open the VMWare client console
- Recycle the power to the unit and wait for the GRUB-loader screen and press the "ESC" key
- Select the "Astaro Security Gateway x.x" version, NOT the previous or rescue option!
- Press the "e" key to edit that entry
- Move down to the second line, then press "e" to edit the line
- At the end of the line enter
init=/bin/bash
, no quotes - Press the "Enter" key, then press the "b" key to boot the device/VM
- You can now change the root and loginuser account passwords by typing "passwd root" or "passwd loginuser"
- Restart the device and allow it to boot normally.
- When the system finishes booting, login as the root user
- To reset the Webadmin admin password, type "cc", no quotes, and press Enter
- Type
RAW
and press enter - Type
system_password_reset
and press enter - Browse to your WebAdmin login page (i.e. https://192.168.0.1:4444) and you should be prompted to create a new password for the admin account.
5 comments:
Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
Thanks for the help. The command was init=/bin/bash not init=/bin/hash though
Thanks, I've updated it accordingly
A very handy procedure, Thanks!
thanks
http://sophserv.sophos.com/repo_kb/115346/file/Locked_out.pdf
this link will help
Post a Comment