Cacti user creation with graphs permission not working

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Chaudiya
Posts: 34
Joined: Mon Nov 14, 2022 12:06 am

Cacti user creation with graphs permission not working

Post by Chaudiya »

Hello Guys,

We do encounter an issue on the latest cacti version (Version 1.2.24), when we create a user that has a limit viewing of
graph but we can't deny or restrict all graph of our devices even on the version (Version 1.2.23). Anyone can help us resolve this issue.

On this image, setting of user account.
User General Settings
User_General.png
User_General.png (138.74 KiB) Viewed 1077 times
On this image, we can't restrict or deny the graph even I try to click deny or try using the drop down box using revoke but still not working it keep saying granted, it should be restricted, right?

User Graph Permission
Graph_Permission.png
Graph_Permission.png (145.01 KiB) Viewed 1077 times
Below image is user settings.

User Settings
User_Settings.png
User_Settings.png (143.59 KiB) Viewed 1077 times
Thank you so much for commenting.
User avatar
macan
Cacti Guru User
Posts: 1146
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti user creation with graphs permission not working

Post by macan »

I have met the similar problem with few users. Try to create new user and test it on it.
Let the Cacti grow!
Chaudiya
Posts: 34
Joined: Mon Nov 14, 2022 12:06 am

Re: Cacti user creation with graphs permission not working

Post by Chaudiya »

macan wrote: Fri Jun 09, 2023 4:42 am I have met the similar problem with few users. Try to create new user and test it on it.
Hello Macan,

This is my 4th account still the same?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cacti user creation with graphs permission not working

Post by TheWitness »

Hover over the word Granted, and you should be presented with a pop-up telling you why the Graph access is Granted.

Cacti in 1.2.24+ has 4 permission systems:
  • Restrictive - You must have access to either: Graph, or Graph Template + Host
  • Permissive - You much have access to either: Graph, Graph Template or Host
  • Device Based - You must have access to either the Graph or the Device
  • Graph Template Based - You must have access to either: Graph or Graph Template
Also, if you are a member of one or more User Groups, those Graph permissions are additive. The permission system works, you just have to find the right solution for your needs. The two most recent permissions systems were put in for the purposes of scalability with large Cacti installs with millions of Graphs.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Chaudiya
Posts: 34
Joined: Mon Nov 14, 2022 12:06 am

Re: Cacti user creation with graphs permission not working

Post by Chaudiya »

TheWitness wrote: Sun Jun 11, 2023 8:57 am Hover over the word Granted, and you should be presented with a pop-up telling you why the Graph access is Granted.

Cacti in 1.2.24+ has 4 permission systems:
  • Restrictive - You must have access to either: Graph, or Graph Template + Host
  • Permissive - You much have access to either: Graph, Graph Template or Host
  • Device Based - You must have access to either the Graph or the Device
  • Graph Template Based - You must have access to either: Graph or Graph Template
Also, if you are a member of one or more User Groups, those Graph permissions are additive. The permission system works, you just have to find the right solution for your needs. The two most recent permissions systems were put in for the purposes of scalability with large Cacti installs with millions of Graphs.
Hello Witness,

As you see below image, the User only has access to the graph but when I try to login this account he/she still has a full view of all devices that I created on Cacti, it should be only granted on some graphs that the user only allowed to view but he/she has still full view of all graph which I can't limit it on the cacti.
Graph_Permission.png
Graph_Permission.png (138 KiB) Viewed 806 times
Chaudiya
Posts: 34
Joined: Mon Nov 14, 2022 12:06 am

Re: Cacti user creation with graphs permission not working

Post by Chaudiya »

Chaudiya wrote: Sun Jun 11, 2023 8:06 pm
TheWitness wrote: Sun Jun 11, 2023 8:57 am Hover over the word Granted, and you should be presented with a pop-up telling you why the Graph access is Granted.

Cacti in 1.2.24+ has 4 permission systems:
  • Restrictive - You must have access to either: Graph, or Graph Template + Host
  • Permissive - You much have access to either: Graph, Graph Template or Host
  • Device Based - You must have access to either the Graph or the Device
  • Graph Template Based - You must have access to either: Graph or Graph Template
Also, if you are a member of one or more User Groups, those Graph permissions are additive. The permission system works, you just have to find the right solution for your needs. The two most recent permissions systems were put in for the purposes of scalability with large Cacti installs with millions of Graphs.
Hello Witness,

As you see below image, the User only has access to the graph but when I try to login this account he/she still has a full view of all devices that I created on Cacti, it should be only granted on some graphs that the user only allowed to view but he/she has still full view of all graph which I can't limit it on the cacti.
Graph_Permission.png
Hello Witness,

Please see below image, this is the account I create as you can see he/she can view all the graph which should be restricted to this user he/she can only view 4 to 6 graphs only or designated template or device. I am trying to restirct but not working on our current cacti. Do you have any sample? Hope you can help us.
User Account.png
User Account.png (194.38 KiB) Viewed 805 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti user creation with graphs permission not working

Post by Osiris »

Start by making the Default policy Deny for Graphs, Devices and Graph Templates. Experiment till you figure it out. Hover over the Effective Permissions column for clues.
Before history, there was a paradise, now dust.
Chaudiya
Posts: 34
Joined: Mon Nov 14, 2022 12:06 am

Re: Cacti user creation with graphs permission not working

Post by Chaudiya »

Osiris wrote: Mon Jun 12, 2023 2:11 am Start by making the Default policy Deny for Graphs, Devices and Graph Templates. Experiment till you figure it out. Hover over the Effective Permissions column for clues.
Hello Osiris,

I already tried creating a policy that is all restricted but still the same. Do you have any blogs or videos that I can follow? I already tried something videos from youtube and blogs from google I follow their instructions but my current setup didn't work. Thanks
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cacti user creation with graphs permission not working

Post by Osiris »

Show a screen shot of the users page that will show deny from left to right.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests