Administrator accounts

An administrator is a special kind of user with permissions to perform all kinds of available operations in GDBase.

Creating an administartor account

By default no administrator account is created in GDBase. In order to create one follow these steps:

  • log in to the server on which the database is running

  • stop the database for which an administrator account is to be created

  • start Advanced Miner

  • create a new Gython script using the code below (make sure to provide the required values for dir, name and codedPassword.

  • run the script

import gdbase
dir = r'C:\path\to\database'
name = 'admin'
codedPassword = 'KWQ1vztl0DI=' # a sample password hash
gdbase.Util.addAdmin(dir, name, codedPassword)

To generate a password hash (the value for the codedPassword variable) use the Password Coder application supplied with Advanced Miner:

  • run AM_HOME\Server\password_coder.bat, where AM_HOME is the AdvancedMiner installation directory

  • fill in the Enter password and Repeat Password fields and click Generate

  • copy the text from the Coded Password field

If a non-administrator user with the same name already exists in the database, then the message user already exists and is not an administrator will be returned.

Note

An administartor account can also be created from the user interface level .

Changing the administrator password

If an administrator account called name already exists then issuing the gdbase.Util.addAdmin(dir, name, codedPassword) command will change the password for this administrator.

Note

  • Password can also be changed from the user interface level .

  • Administrator privileges as a whole can be given to or taken away from a user.

  • Any number of administrator accounts can be created for a single database.

  • An administrator can take away administrator privileges from another administrator or remove another administrator account. It is not possible for an administrator to take away administrator privileges from his/her own account or to remove his/her own account.

  • From the moment the first administrator account is added to the database at least one such account will exist. A special case of removing all administrator accounts with all access rights (reversing to the initial situation) is described in the Resetting user privileges section .