How to Restore the 'admin' password

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Restore the 'admin' password

L5 Sessionator

update ver 1.1.9 added a CLI option to restore the password for the WebUI account  - 'admin'

 

If you need to restore the password to the default password of 'paloalto' the CLI syntax is shown below:

 

 

expedition@Expedition:/var/www/html$ php /home/userSpace/utils/restore/restoreAdmin.php

 

✓ Connected successfully to the database

✓ Admin user found

✓ Admin password restored to:    'paloalto'

 

expedition@Expedition:/var/www/html$

11 REPLIES 11

When I run above command I get following error, am I missing anything?

PHP Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/OS/startup/restore/restoreAdmin.php on line 81
Connection failed: No such file or directory

Try to switch to Root account using $su , then you should be able  to see the file. 

L1 Bithead

Hi there,
I followed the commands and it shows the correct restoration, however credentials not working in the GUI:

expedition@expedition1:~$ sudo php /var/www/html/OS/startup/restore/restoreAdmin.php

✓       Connected successfully to the database
✓       Admin user found
✓       Admin password restored to:    'paloalto'

expedition@expedition1:~$

 

I tried using admin/paloalto as default credentials but is not working.

I also have powered-off/on with no luck.
Expedition version: 1.2.39
Any suggestions?

EdgarG

@edgutier 

Which version of ubuntu you are running ?  Expedition newer version only runs on ubuntu 20.x please follow the installation guide below:

https://live.paloaltonetworks.com/t5/expedition-articles/expedition-documentation/ta-p/215619?attach...

 

Hi, 
My Ubuntu is running 20.04 LTS

EdgarG
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!