Let's look at how you can use the Cacti CLI to manage user permissions and some basic administrative tasks.
When copying a user, the user permissions of the original user are copied to the new user. Let's assume that you have set your original user to deny access by default for trees, devices, and graphs. Now if you want to add further permissions to the new user, you can use a special script from the Cacti CLI.
Let's look how this permission script works:
- Log on to your Cacti system.
- Change to the Cacti CLI directory:
cd /var/www/html/cacti/cli
- Execute the following command:
php add_perms.php
- You'll see a short overview of the available options for this command:
- As you can see, this tool requires the user ID so let's get a list of all available users:
php add_perms.php --list-users
- You'll be shown a list of all users together with their user IDs:
- Now let's assume you want to give access to a specific tree. The command...