[SOLVED] Permission Denied to Cacti GUI
Moderators: Developers, Moderators
[SOLVED] Permission Denied to Cacti GUI
Hi Team,
My cacti version is currently 1.1.37 which is up to date. It was working fine but suddenly stopped working and gave me permission denied while I was bulk copying admin user. Can you please guide me?
It shows below:
Permission Denied
You are not permitted to access this section of Cacti.
If you feel that this is an error. Please contact your Cacti Administrator.
[Return | Login Again]
Version 1.1.37 | (c) 2004-2018 - The Cacti Group
Viral
My cacti version is currently 1.1.37 which is up to date. It was working fine but suddenly stopped working and gave me permission denied while I was bulk copying admin user. Can you please guide me?
It shows below:
Permission Denied
You are not permitted to access this section of Cacti.
If you feel that this is an error. Please contact your Cacti Administrator.
[Return | Login Again]
Version 1.1.37 | (c) 2004-2018 - The Cacti Group
Viral
- Attachments
-
- error_snapshot
- Capture.PNG (67.71 KiB) Viewed 2775 times
Re: Permission Denied to Cacti GUI
There is a bug where you can define the admin user as a template user, which then disables the admin user. Run the following for me to see if that's been hit (otherwise it's really a permissions issue where you've locked yourself out somehow).
On a fresh system, you should have a table like above.
Code: Select all
select id, username, realm, must_change_password, password_change, login_opts, enabled, locked from user_auth;
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| id | username | realm | must_change_password | password_change | login_opts | enabled | locked |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| 1 | admin | 0 | | on | 2 | on | |
| 3 | guest | 0 | on | on | 1 | | |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
2 rows in set (0.00 sec)
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Permission Denied to Cacti GUI
Thanks netniV for the response. here's the output. Seems like I am locked out pretty much. I copied admin user to Viral using cli to see response but it is locked out as well. Please guide.
Regards,
Viral
Code: Select all
MariaDB [cacti]> select id, username, realm, must_change_password, password_change, login_opts, enabled, locked from user_auth;
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| id | username | realm | must_change_password | password_change | login_opts | enabled | locked |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| 1 | admin | 0 | | on | 2 | on | |
| 4 | support | 0 | | on | 3 | on | |
| 5 | viral | 0 | | on | 2 | on | |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
3 rows in set (0.00 sec)
Viral
Re: Permission Denied to Cacti GUI
Code: Select all
select * from user_auth_realm where user_id = 1;
+----------+---------+
| realm_id | user_id |
+----------+---------+
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | 1 |
| 5 | 1 |
| 7 | 1 |
| 8 | 1 |
| 9 | 1 |
| 10 | 1 |
| 11 | 1 |
| 12 | 1 |
| 13 | 1 |
| 14 | 1 |
| 15 | 1 |
| 16 | 1 |
| 17 | 1 |
| 18 | 1 |
| 19 | 1 |
| 20 | 1 |
| 21 | 1 |
| 22 | 1 |
| 23 | 1 |
| 24 | 1 |
| 25 | 1 |
| 26 | 1 |
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Permission Denied to Cacti GUI
Seems like have no privs at all to user. How can i assign them?
Thanks,
Viral
Code: Select all
MariaDB [cacti]> select * from user_auth_realm where user_id = 1;
Empty set (0.00 sec)
Viral
Re: Permission Denied to Cacti GUI
Seems like have no privs at all to user. How can i assign them?
Thanks,
Viral
Code: Select all
MariaDB [cacti]> select * from user_auth_realm where user_id = 1;
Empty set (0.00 sec)
Viral
Re: Permission Denied to Cacti GUI
I figured out. For anyone facing same issue, below command resolved authority issue for admin user.
and so on upto realm_id=26.
Note that the column names are enclosed in ` (character above tab) and not in quotes
Thanks a bunch netniV for resolution. Have a good day!
Viral
Code: Select all
MariaDB [cacti]> INSERT INTO user_auth_realm (`realm_id`, `user_id`) values ('1', '1');
Note that the column names are enclosed in ` (character above tab) and not in quotes
Thanks a bunch netniV for resolution. Have a good day!
Viral
Re: Permission Denied to Cacti GUI
Sorry, had a busy weekend so didn't checkin here. But you figured out the required commands so that's cool.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 3 guests