Ad Widget

Collapse

super admin permissions to screens

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seba
    Junior Member
    • Jul 2009
    • 9

    #1

    super admin permissions to screens

    after update from 1.8 to 1.8.2 I`ve solved problem with permissions to monitor tab to guest but found another permissions problem. My superadmin user with all privilages cant see screens: "ERROR: Permission denied!"
  • seba
    Junior Member
    • Jul 2009
    • 9

    #2
    nobody? it`s very annoying problem...
    here`s what Ive got in admininstration->users tab:
    User 'Admin' is in groups:

    Database administrators
    Head of IT department
    Network administrators
    Security specialists
    UNIX administrators
    WEB administrators
    Zabbix administrators
    monitoring (my own group with read privileges to all)

    And it has read/write privileges to all.

    User 'guest' is in monitoring group
    and has readonly privileges.

    With user 'Admin' I dont have access to screens only, and its weird.

    Comment

    • richlv
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2005
      • 3112

      #3
      any chance your screen contains graphs from web monitoring ?
      if so, that might be fixed in current svn head
      Zabbix 3.0 Network Monitoring book

      Comment

      • Palmertree
        Senior Member
        • Sep 2005
        • 746

        #4
        We had the same issues but the following patches worked for us:

        Code:
        diff -ruN /root/zabbix-original/frontends/php/api/classes/class.cscreen.php /root/zabbix/frontends/php/api/classes/class.cscreen.php
        --- /root/zabbix-original/frontends/php/api/classes/class.cscreen.php    2010-05-12 04:07:36.000000000 -0400
        +++ /root/zabbix/frontends/php/api/classes/class.cscreen.php    2010-05-12 04:07:59.000000000 -0400
        @@ -100,7 +100,7 @@
         // editable + PERMISSION CHECK
         
         // nodeids
        -        $nodeids = !is_null($options['nodeids']) ? $options['nodeids'] : get_current_nodeid(false);
        +        $nodeids = !is_null($options['nodeids']) ? $options['nodeids'] : get_current_nodeid();
         
         // screenids
                 if(!is_null($options['screenids'])){
        
        diff -ruN /root/zabbix-original/frontends/php/include/screens.inc.php /root/zabbix/frontends/php/include/screens.inc.php
        --- /root/zabbix-original/frontends/php/include/screens.inc.php    2010-05-12 04:07:36.000000000 -0400
        +++ /root/zabbix/frontends/php/include/screens.inc.php    2010-05-12 04:07:59.000000000 -0400
        @@ -29,7 +29,7 @@
         
                 $result = false;
         
        -        if(DBfetch(DBselect('SELECT screenid FROM screens WHERE screenid='.$screenid.' AND '.DBin_node('screenid', get_current_nodeid($perm))))){
        +        if(DBfetch(DBselect('SELECT screenid FROM screens WHERE screenid='.$screenid.' AND '.DBin_node('screenid', get_current_nodeid(null,$perm))))){
                     $result = true;
         
                     $db_result = DBselect('SELECT * FROM screens_items WHERE screenid='.$screenid);

        Comment

        • seba
          Junior Member
          • Jul 2009
          • 9

          #5
          Originally posted by Palmertree
          We had the same issues but the following patches worked for us:

          Code:
          diff -ruN /root/zabbix-original/frontends/php/api/classes/class.cscreen.php /root/zabbix/frontends/php/api/classes/class.cscreen.php
          --- /root/zabbix-original/frontends/php/api/classes/class.cscreen.php    2010-05-12 04:07:36.000000000 -0400
          +++ /root/zabbix/frontends/php/api/classes/class.cscreen.php    2010-05-12 04:07:59.000000000 -0400
          @@ -100,7 +100,7 @@
           // editable + PERMISSION CHECK
           
           // nodeids
          -        $nodeids = !is_null($options['nodeids']) ? $options['nodeids'] : get_current_nodeid(false);
          +        $nodeids = !is_null($options['nodeids']) ? $options['nodeids'] : get_current_nodeid();
           
           // screenids
                   if(!is_null($options['screenids'])){
          
          diff -ruN /root/zabbix-original/frontends/php/include/screens.inc.php /root/zabbix/frontends/php/include/screens.inc.php
          --- /root/zabbix-original/frontends/php/include/screens.inc.php    2010-05-12 04:07:36.000000000 -0400
          +++ /root/zabbix/frontends/php/include/screens.inc.php    2010-05-12 04:07:59.000000000 -0400
          @@ -29,7 +29,7 @@
           
                   $result = false;
           
          -        if(DBfetch(DBselect('SELECT screenid FROM screens WHERE screenid='.$screenid.' AND '.DBin_node('screenid', get_current_nodeid($perm))))){
          +        if(DBfetch(DBselect('SELECT screenid FROM screens WHERE screenid='.$screenid.' AND '.DBin_node('screenid', get_current_nodeid(null,$perm))))){
                       $result = true;
           
                       $db_result = DBselect('SELECT * FROM screens_items WHERE screenid='.$screenid);
          Can You pleas tell me what to do with those patches? I`ve never do this before...

          Comment

          Working...