Managing user rights
Assigning user rights
In addition to creating and enabling a database, the create_inza_db.sh script
also creates the following groups for users of the database:
- dbname_inzaadmins
- Users who need local admin rights for this database. This group grants permissions to the user as if they were the database owner.
- dbname_inzadevelopers
- Users who need to be able to register new AEs, UDXs, or stored procedures.
- dbname_inzausers
- Other users.
To manage access rights for the users of databases that are enabled for use with Netezza Performance Server Analytics, use the following scripts. Each script
must be run once per combination of user and database. The specified user and database must exist
before you can run the script.
- To add a user to the
dbname_inzaadminsgroup for the specified database:$./create_inza_db_admin.sh dbname username - To add a user to the
dbname_inzadevelopersgroup for the specified database:$./create_inza_db_developer.sh dbname username - To add a user to the
dbname_inzausersgroup for the specified database:$./create_inza_db_user.sh dbname username
Note:
- It is not necessary to run any of these scripts for the database administrator, that is, the
user
ADMIN. - Netezza Performance Server Analytics does not grant privileges to
the
PUBLICgroup, nor does Netezza Performance Server Analytics require that users are members of thePUBLICgroup. However, removing a user from thePUBLICgroup might affect that user's ability to use other commands or other software products.
Assigning user rights on a subordinate node within a replication system
If the database you are assigning user rights for is on a subordinate node within a replication
system, extra steps are necessary:
- On the subordinate node, run one of the following commands for each combination of user and
database:
Each command displays a list of SQL statements./nz/export/ae/utilities/bin/create_inza_db_admin.sh dbname username /nz/export/ae/utilities/bin/create_inza_db_developer.sh dbname username /nz/export/ae/utilities/bin/create_inza_db_user.sh dbname username - On the controller node, manually run the SQL statements that are displayed in the previous step.
Displaying access rights
Use the following command to display the access rights of a particular
group:
nzsql \dpg groupnameUse the following command to display the access rights of a particular
user:
nzsql \dp usernameRevoking user rights
To revoke access rights for the users of databases that are enabled for use with Netezza Performance Server Analytics, use the following scripts. Each script
must be run once per combination of user and database. The specified user and database must already
exist before you can run the script.
- To remove a user from the
dbname_inzaadminsgroup for the specified database:$./revoke_inza_db_admin.sh dbname username - To remove a user from the
dbname_inzadevelopersgroup for the specified database:$./revoke_inza_db_developer.sh dbname username - To remove a user from the
dbname_inzausersgroup for the specified database:$./revoke_inza_db_user.sh dbname username