SV-214061r508027_rule
V-214061
SRG-APP-000180-DB-000115
PGS9-00-001400
CAT II
10
To drop a role, as the database administrator (shown here as "postgres"), run the following SQL:
$ sudo su - postgres
$ psql -c "DROP ROLE <role_to_drop>"
To create a role, as the database administrator, run the following SQL:
$ sudo su - postgres
$ psql -c "CREATE ROLE <role name> LOGIN"
For the complete list of permissions allowed by roles, see the official documentation: https://www.postgresql.org/docs/current/static/sql-createrole.html
PostgreSQL uniquely identifies and authenticates PostgreSQL users through the use of DBMS roles.
To list all roles in the database, as the database administrator (shown here as "postgres"), run the following SQL:
$ sudo su - postgres
$ psql -c "\du"
If users are not uniquely identified as per organizational documentation, this is a finding.
V-214061
False
PGS9-00-001400
PostgreSQL uniquely identifies and authenticates PostgreSQL users through the use of DBMS roles.
To list all roles in the database, as the database administrator (shown here as "postgres"), run the following SQL:
$ sudo su - postgres
$ psql -c "\du"
If users are not uniquely identified as per organizational documentation, this is a finding.
M
3994