Apache Cassandra 1.2 Documentation

ALTER USER

The Cassandra 1.2 documentation is transitioning to a new format!
Please use the new Cassandra 1.2 documentation instead.
Back to Table of Contents
CQL Commands Table of Contents

Alter existing user options.

Synopsis

ALTER USER user_name
  WITH PASSWORD 'password' NOSUPERUSER | SUPERUSER

Synopsis legend

Description

Superusers can change a user's password or superuser status. To prevent disabling all superusers, superusers cannot change their own superuser status. Ordinary users can change only their own password.

Enclose the user name in single quotation marks if it contains non-alphanumeric characters. Enclose the password in single quotation marks.

Example

ALTER USER moss WITH PASSWORD 'bestReceiver';