1.1 Ensure a separate user and group exist for Cassandra - user exists in group

Information

Create separate userid and group for Cassandra.

Rationale:
All processes need to run as a user with least privilege. This mitigates the potential impact of malware to the system.

Solution

Create a group for cassandra(if it does not already exist)

sudo groupadd cassandra

Create a user which is only used for running Cassandra and its related processes.

sudo useradd -m -d /home/cassandra -s /bin/bash -g cassandra -u <USERID_NUMBER> cassandra

Replacing <USERID_NUMBER> with a number not already used on the server

References:

See Also

https://workbench.cisecurity.org/files/2309