[ZBX-24280] super admin get access denied Created: 2024 Mar 29 Updated: 2024 Oct 30 |
|
Status: | Open |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 6.4.13 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | adnet | Assignee: | Michal Kudlacz |
Resolution: | Unresolved | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
server 6.4.13 on debian 11 |
Attachments: |
![]() ![]() |
Description |
Steps to reproduce:
Result:
Details Access denied
Expected: Superadmin cannot have access denied at all. I can change the same macro on other host but in some i have
i cannot find any reason behind this error has it is not universal, it is on some host.
regards, Ghislain. |
Comments |
Comment by adnet [ 2024 Mar 29 ] |
Comment by adnet [ 2024 Apr 05 ] |
i tried to find any differences in the database with other host, and in the user and user role tables. But i really cannot find why i got this access denied error as a super admin.
best regards, Ghislain. |
Comment by adnet [ 2024 Apr 09 ] |
when i add some debug $view['messages'][] = print_r(CWebUser::$data,true); i got: infoArray |
Comment by Michal Kudlacz [ 2024 Apr 10 ] |
Hi, Thanks for this bug report. It's difficult to reproduce, so it would be great to find out more details. I'm aware you have done a db comparison. Could you show results of the following queries anyway please?
SELECT userid, username, roleid, userdirectoryid, ts_provisioned FROM users WHERE username = "gadnet";
SELECT * FROM role;
SELECT * FROM role_rule;
SELECT * FROM rights;
SELECT * FROM usrgrp;
SELECT * FROM users_groups;
Could you turn debug on and copy output to a text file as you come across 'access denied' message? Thanks |
Comment by adnet [ 2024 Apr 10 ] |
of course, here is the result. I tried to figure it out and search in the code but was unable to find the issue.
mysql> SELECT userid, username, roleid, userdirectoryid, ts_provisioned FROM users WHERE username = "gadnet"; |
Comment by adnet [ 2024 Apr 10 ] |
and yes it is an upgraded version that is there since a long time i think it goes to zabbix4 at least. |
Comment by adnet [ 2024 Apr 10 ] |
so much things in it |
Comment by adnet [ 2024 Apr 16 ] |
i tried to see if there was an upgrade script that failed in the databases schema but i cannot find any .sql that i was missed.
FYI i always done the upgrades using apt.
regards, ghislain |
Comment by adnet [ 2024 Jun 11 ] |
is there any possibilities that zabbix 7 could correct this ? |
Comment by Michal Kudlacz [ 2024 Jun 14 ] |
Hello, Thanks for sharing details. Permission checks were reworked as per You can check the number of sessions per user: SELECT userid, count(*) FROM sessions WHERE status = 0 GROUP BY userid; And a total count of active sessions: SELECT count(*) FROM sessions WHERE status = 0; Is it feasible to upgrade to the latest minor? |
Comment by adnet [ 2024 Jun 28 ] |
i upgraded to 7.0 but still cannot modify some host, the same return me: DetailsAccess denied
xxx is my super-admin account every time i try to change a inherited macro on those host i got this message. [/etc/apt/sources.list.d]: dpkg -l 'zabbix*'|grep ii
|
Comment by Carlos Santos [ 2024 Oct 30 ] |
I am having the same issue when accessing a module: Access denied
xxx_admin belongs to a group not Super Admin but has SuperAdmin role in that group. Using the default Admin user gets the same error. Zabbix version: 7.0.3 Let me know if you need more information. |
Comment by adnet [ 2024 Oct 30 ] |
on our side as unfortunatly the bug cannot be corrected and we could not find anyway to make it work even looking at the code we had to reinstall zabbix from scratch and loose everything in the process regards, Ghislain. |