Ad Widget

Collapse

Problema con usuario admin para acceder al frontends

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fluque
    Junior Member
    • Sep 2007
    • 9

    #1

    Problema con usuario admin para acceder al frontends

    Buenas,

    Tengo un problema para acceder con el usuario "admin" y la password que tenia puesta desde el frontends.

    Ayer de repente cambiando desde el frontends un dato, se interrunpio la sección, es decir me echo fuera, y al intentar entrar con el usuario "admin" y la password no me deja, me dice usuario o password incorrecto.

    La versión que tento instalada es 1.4.5, si accedo con un usuario de solo lectura "soporte", puedo acceder, pero me aparece que tengo la versión 1.4.2.

    He probado a reinstalar la versión 1.4.3, etc, pero no consigo arreglar el problema.

    Si alguien sabe del tema,

    Muchas gracias.
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #2
    I apologize ahead of time for my Spanish being a bit weak. It has been so long since I have tried to speak Spanish that I won't try to respond. It would probably be too confusing for both of us

    If I read and understand you correctly, you are having problems with the new frontend having different versions and blocking out the admin user.

    My suggestion would be to completly replace the frontend with the latest version. Don't over write the files, just replace them. Do something like:

    mv public_html public_html_old
    mkdir public_html
    mv zabbix1.5/frontend/* public_html/.

    Obviously, you will not be able to copy those commands directly but I hope you get the idea.

    As for your admin password not having a proper login, if you still have admin access to your SQL database then you should be able to delete the password and/or replace it.

    mysql -uroot -p
    use zabbix;
    select * from users where alias='Admin';

    The password field is the md5sum hash of the admin's password. Recreate a new password and stick it in there. You can recreate the password by using:

    echo password | md5sum

    Hope this helps!
    Have fun!

    Comment

    • Andreas Bollhalder
      Senior Member
      Zabbix Certified Specialist
      • Apr 2007
      • 144

      #3
      Hola

      Primero perdoname para mi español...

      Si cambiara por unos rasones la contraseña del ZABBIX Admin:

      ZABBIX tiene sus contraseñas en el banco de datos. Los contraseñas son cifrado. Para ver en MySQL, puedes hacer en la consola:
      Code:
      # mysql -p
      mysql> use zabbix (o el nombre de tu banco de datos)
      mysql> select userid, alias, passwd from users;
      En este lista, busca el numero del usario (alias es Admin).

      Si sabes come es la codificación, pudes computar el nuevo contraseño y actualizar el valor.
      Code:
      mysql> update users set passwd='Contraseña cifrado' where userid='Numero del usario';
      Más facil, puedes revisar los scriptos de SQL del installation de ZABBIX, adonde son los datos estandarizado. Aya debes encontrar el valor. En mi systema ere:
      Code:
      mysql> update users set passwd='d41d8cd98f00b204e9800998ecf8427e' where userid='1';
      Con este, tienes la contraseña como despues una installation nuevo.

      Espero que te ayuda.

      Saludos
      Andreas
      Zabbix statistics
      Total hosts: 380 - Total items: 12190 - Total triggers: 4530 - Required server performance: 224.2

      Comment

      Working...