Forum

Unified Communications PBX System

Help us to improve VitalPBX

Processing ...
USD
admin password not ...
 

[Solved] admin password not working or resetting  

  RSS

Gary
 Gary
(@gary)
Estimable Member
Joined: 2 years ago
Posts: 123
28/12/2018 12:46 pm  

I seem to have some how locked myself out of admin, I can login as other users that I created but not admin. I tried to reset the admin password using the reset script but i still can't login ?

php /usr/share/ombutel/scripts/reset_ombu_password

# reset_ombu_password: Reset the password of the (first) admin user.
#
# Upon next login, you'll need to set the password for that user.

parse_conf() {
cd /usr/share/ombutel/www
php -r '
require_once("config.php");
$vars = ["name", "username", "password", "prefix"];
foreach($vars as $var_base) {
$var = "database_${var_base}";
echo "${var_base}: " . constant("config::$var") . "\n";
}
'
}

config=`parse_conf`
name=` echo "$config" | awk '/^name:/ {print $2}'`
username=` echo "$config" | awk '/^username:/ {print $2}'`
password=` echo "$config" | awk '/^password:/ {print $2}'`
prefix=` echo "$config" | awk '/^prefix:/ {print $2}'`

settings_table="${prefix}settings"

mysql -u$username -p$password -e"update ${name}.${settings_table} set value = 'yes' where name = 'reset_pwd';"
You have new mail in /var/spool/mail/root

 


Quote
Gary
 Gary
(@gary)
Estimable Member
Joined: 2 years ago
Posts: 123
28/12/2018 12:58 pm  

Fixed:

I ran

cd /usr/share/ombutel/scripts/
./reset_ombu_password

Instead of

php /usr/share/ombutel/scripts/reset_ombu_password

And it resets password.


ReplyQuote
Share:
  
Working

Please Login or Register