Denying Permission
RESTRICT
a privilege on a resource to deny access to user with the role.
The user is denied access even if the role is a superuser, privilege has been granted directly to the role or was inherited.
Use UNRESTRICT
to remove any restrictions the role has on the database resource.
An account with the |
GRANT
and REVOKE
only allow access to database resources that are UNRESTRICT
.
Procedure
-
Log in to
CQLSH
with asuperuser
role.cqlsh -u <username>
Logging in with the default role
cassandra
may impact performance or may fail. All requests including login are executed with consistencyQUORUM
. -
Create an account with login enabled, but as highlighted in the Tip above, intentionally do not give this
db_admin
account thesuperuser
role.CREATE ROLE IF NOT EXISTS db_admin WITH superuser = false AND login = true AND password = 'anypasswordwilldo';
A password is required for internal accounts but not for LDAP or Kerberos. See
CREATE ROLE
.