Get your free beta license ↗
CMDCommand · run as root on the server · database family

urbestack-database-grant-set

First published 3 Oct 20260.1.0Unchanged since publication

Usage

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 output
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 options

Same in the API

These operations run the command.

More in database

12 commands, by what they work onView all commands in this family →
urbestack-database-
urbestack-database-grant-
urbestack-database-signon-
urbestack-database-user-
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/