Database Reference
In-Depth Information
create user normaluser with password 'normal';
create user 'superuser' with password
'superuser' superuser;
Figure 4-7
.
List of registered users
Also, you can explore the credentials table for its password and other information.
With this we conclude that we can create and manage user credentials using authen-
tication.
In the preceding recipe we managed to create a
superuser
and
non-superuser
. The
next recipe will talk about managing and accessing user credentials on different column
families for both types of users.
Managing User Permissions
Cassandra provides the mechanism to manage user permission and credentials for au-
thenticated users. In this recipe, we will explore more about managing/accessing user
permissions. The default authorizer set configured in
cassandra.yaml
is
Al-
lowAllAuthorizer
.
1.
First, let's try to authenticate with
normaluser
and manage its per-
mission with
AllowAllAuthorizer
:
//connect with cqlsh.
$CASSANDRA_HOME/bin/cqlsh -3 -u normaluser -p
normal