Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

I have created 3 databases in one RDS DB instance. The owner of these databases is user Postgres. I'd like to create a new power user. When I am trying to create it I receive: "User 'Postgres' has no privileges to edit users" But it is the one user which I can use. How I can create the new user?

1 Answer

0 votes
by (44.4k points)

Use CREATE ROLE and to the new user assign rds_superuser role. Check out this documentation.

These are the instructions:

postgres=> create role testuser with password 'testuser' login;   

CREATE ROLE   

postgres=> grant rds_superuser to testuser;   

GRANT ROLE   

postgres=>

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer
asked Jul 24, 2019 in AWS by yuvraj (19.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...