Monday, June 06, 2011

Reset forgotten Astaro WebAdmin 'admin' user password

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.

  1. Shutdown the firewall an connect a screen and keyboard, or in my case open the VMWare client console 
  2. Recycle the power to the unit and wait for the GRUB-loader screen and press the "ESC" key 
  3. Select the "Astaro Security Gateway x.x" version, NOT the previous or rescue option! 
  4. Press the "e" key to edit that entry 
  5. Move down to the second line, then press "e" to edit the line 
  6. At the end of the line enter init=/bin/bash, no quotes 
  7. Press the "Enter" key, then press the "b" key to boot the device/VM 
  8. You can now change the root and loginuser account passwords by typing "passwd root" or "passwd loginuser" 
  9. Restart the device and allow it to boot normally. 
  10. When the system finishes booting, login as the root user 
  11. To reset the Webadmin admin password, type "cc", no quotes, and press Enter 
  12. Type RAW and press enter 
  13. Type system_password_reset and press enter 
  14. 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:

Super Bowl Commercials 2012 said...

Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.

Anonymous said...

Thanks for the help. The command was init=/bin/bash not init=/bin/hash though

Troy said...

Thanks, I've updated it accordingly

Ptochos said...

A very handy procedure, Thanks!

ErrOr said...

thanks

http://sophserv.sophos.com/repo_kb/115346/file/Locked_out.pdf

this link will help