Ad Widget

Collapse

I delete account Amin.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • azzarell
    Junior Member
    • May 2005
    • 1

    #1

    I delete account Amin.

    How do I create a new Admin account of zabbix?
  • kostas0875
    Junior Member
    • Feb 2008
    • 3

    #2
    Delete admin account

    I have done the same stupidity too. Can anyone help>>>.....

    Comment

    • SierraX
      Junior Member
      • Dec 2006
      • 21

      #3
      Originally posted by kostas0875
      I have done the same stupidity too. Can anyone help>>>.....
      Try to create a admin account in database with the same Password of a known user.

      like

      Code:
      mysql -u root -pblablub zabbix -e 'insert into users (alias) values (admin)'
      read desc from table users and rights

      1.1.4 has rights like
      Code:
      +---------+--------+-------------------------+------------+------+
      | rightid | userid | name                    | permission | id   |
      +---------+--------+-------------------------+------------+------+
      |       1 |      1 | Default permission      | U          |    0 | 
      |       2 |      1 | Default permission      | A          |    0 |
      For admin 1.4.4 can be different.
      Dump your DB before work... Work on DB can damage it.
      Last edited by SierraX; 08-02-2008, 16:42.

      Comment

      • kostas0875
        Junior Member
        • Feb 2008
        • 3

        #4
        Help!!!

        Can you give me more details as i can not understand the command

        Comment

        • hardtofi
          Member
          • Jan 2008
          • 32

          #5
          Originally posted by kostas0875
          Can you give me more details as i can not understand the command
          How about just running the relevant sql from create/data/data.sql?

          INSERT INTO users VALUES (1,'Admin','Zabbix','Administrator','d41d8cd98f00b 204e9800998ecf8427e','',900,'en_gb',30,3);
          INSERT INTO users_groups VALUES (1,7,1);

          Comment

          • wyatt121
            Junior Member
            • Aug 2008
            • 4

            #6
            Shoot!!!.. I too accidently deleted the Admin account. I can't believe this even an option. Please REMOVE this option. I tried this latter mysql command but it did not work. Anyone know how to add back the Admin account?

            Wyatt

            Comment

            • wyatt121
              Junior Member
              • Aug 2008
              • 4

              #7
              Ok... the above works perfectly, but he has an error in his command. He mistakenly has a space in the password in first line of the syntax. Here is the correction.


              INSERT INTO users VALUES (1,'Admin','Zabbix','Administrator','d41d8cd98f00b 204e9800998ecf8427e','',900,'en_gb',30,3);
              INSERT INTO users_groups VALUES (1,7,1);



              Well it appears now that he had it correct.... but this silly forum adds the space when pasting it in...



              Regards,

              Wyatt

              Comment

              Working...