Forgotten ‘maintenance’ password for Junos Space
The maintenance users password can be reset in Junos Space if you still have access via the CLI:
- SSH to the Space host
- Log in as the admin user
- Choose the debug option on the menu (6 or 7, depending on whether this is a VM or an appliance). Just press the number, not the number followed by return!
- Put in the admin user’s password again. You’re now in the Centos shell.
- Issue the command ‘htpasswd -sb /var/www/maintenance/maintPW maintenance <newpassword>‘
Simple as that… I was never sure why an additional maintenance password was required as well as the admin user and the GUI super user password. Makes it a pain to keep a record of, but there you go – presumably there’s a good reason.