admin password not working or resetting

VitalPBX Community Support General Discussion admin password not working or resetting

Up
0
Down
  • Post
    Gary
    Participant

    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

     

    0
Viewing 1 replies (of 1 total)
  • Replies
    Gary
    Participant

    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.

    0
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.