CMDCommand · run as root on the server · database family
urbestack-database-grant-set
First published 3 Oct 2026
0.1.0Unchanged since publicationUsage
2 forms# urbestack-database-grant-set --name DBUSER --database NAME --level (full | read-only | none) [--owner CUSTOMER] [--dry-run]# urbestack-database-grant-set --name DBUSER --database NAME --level custom --privileges 'SELECT, INSERT'Description
From the command's --help outputSets a database user's privileges on a named database. The database and the database user must belong to the same customer. With --owner, both must belong to the named customer. Specify the exact database name. Use --level full for ALL PRIVILEGES on that database, read-only for SELECT and SHOW VIEW, or none to remove the grant. Use --level custom with a comma-separated list such as --privileges 'SELECT, INSERT' to set privileges selected by the customer or preserved by an import. The list accepts database-level privileges only and excludes FILE and GRANT OPTION. MariaDB must be installed and database.enabled must be on. The command resets the password and grants for every MariaDB host entry for the database user to the values recorded in UrbeStack.Usage: urbestack-database-grant-set --name DBUSER --database NAME --level (full | read-only | none) [--owner CUSTOMER] [--dry-run] urbestack-database-grant-set --name DBUSER --database NAME --level custom --privileges 'SELECT, INSERT' Sets a database user's privileges on a named database. The database and the database user must belong to the same customer. With --owner, both must belong to the named customer. Specify the exact database name. Use --level full for ALL PRIVILEGES on that database, read-only for SELECT and SHOW VIEW, or none to remove the grant. Use --level custom with a comma-separated list such as --privileges 'SELECT, INSERT' to set privileges selected by the customer or preserved by an import. The list accepts database-level privileges only and excludes FILE and GRANT OPTION. MariaDB must be installed and database.enabled must be on. The command resets the password and grants for every MariaDB host entry for the database user to the values recorded in UrbeStack.
Options
Find other commands that accept these optionsSame in the API
These operations run the command.Generated from release 0.2.35 (current) · urbestack-database-grant-set --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-database-grant-set/