Ad Widget

Collapse

How to recover configuration privileges for admin user?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrivel
    Junior Member
    • Jun 2006
    • 2

    #1

    How to recover configuration privileges for admin user?

    So I accidentally reset the permissions for the Admin user and I no longer have configuration access. Also, the one other user I had setup also has no configuration access. Do I need to drop the database and start again? Or is there a way to recover the configuration priveleges for the Admin user.

    Thanks,
    Josh
  • just2blue4u
    Senior Member
    • Apr 2006
    • 347

    #2
    which DB do you use?

    Log in into DB...
    Remove all rights for admin user (ID #1).
    Then say
    Code:
    INSERT INTO `rights` VALUES (1,1,'Default permission','U',0),(2,1,'Default permission','A',0)
    another browser reload, and everything should be ok again.

    try it, but think about making another DB backup before!
    Last edited by just2blue4u; 30-06-2006, 11:55.
    Big ZABBIX is watching you!
    (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

    Comment

    • jrivel
      Junior Member
      • Jun 2006
      • 2

      #3
      Thanks for the tip. I actually deleted the admin user and recreated it via mysql and that worked fine.

      Comment

      • wyatt121
        Junior Member
        • Aug 2008
        • 4

        #4
        Hi,

        How did you recreate the admin user in mysql?

        Wyatt

        Comment

        Working...