Copy Local Cacti Users

For use and understanding the limitation of this script, it is of importance to read Chapter 9. In case you're using local cacti user definitions, you may copy a template user to a new user. Don't use this script for LDAP or Web Basic users.

Calling the script with the parameter --help yields

shell>php -q copy_user.php --help

It is highly recommended that you use the web interface to copy users as this script will only copy Local Cacti users.

Syntax:
 php copy_cacti_user.php <template user> <new user>

Now let's create a new user Harry Potter as follows

shell>php -q copy_user.php guest "Harry Potter"

It is highly recommended that you use the web interface to copy users as this script will only copy Local Cacti users.

Cacti User Copy Utility
Template User: guest
New User: Harry Potter

Copying User...
User copied...

Find the results of this program call at User Management

User Name** 	Full Name 	Enabled 	Realm 	Default Graph Policy 	Last Login
admin  	        Administrator  	Yes  		Local  	ALLOW  			Sunday, October 07, 2007 14:59:32
guest 	        Guest Account 	Yes 		Local 	ALLOW 			N/A
Harry Potter 	Guest Account 	Yes 		Local 	ALLOW 			N/A