enter image description here
Im trying to add a new user account for a database but as you can see , users and privileges tab doesnt show anything ,thanks in advance .
You don't have permission to see anything: https://superuser.com/a/1538619/42406
Ask someone to grant you privileges:
GRANT ALL PRIVILEGES ON *.* TO 'user'#'host' IDENTIFIED BY 'password';
Related
I'm trying to set up a Datadog PostgreSQL integration that requires a user with pg_monitor role and SELECT permission on pg_stat_database as described on their own documentation.
My database is currently hosted on Heroku and it seems the default user doesn't have SUPERUSERpermissions because, when I try to apply the above role and permission to a "monitor" user I have the following error message:
ERROR: must have admin option on role "pg_monitor"
So I'm looking for some way of:
grant the necessary permissions to that user without being a superuser
get superuser access on Heroku Postgres (what I think is not possible)
Someone has ever faced this issue? There is a way to handle this case?
I had to open a ticket asking the Heroku CS team to apply the "pg_monitor" role to my user. They've granted the role and now everything is working fine
When I try to create a new user or role I am getting
[42501] ERROR: permission denied to create role
I am executing
CREATE user test with PASSWORD 'xyz1234reee'
I am logged in as a superuser
You are not logged in as a superuser.
Perhaps you are on a hosted database, and they gave you a user like rds_superuser. That sounds like a superuser, but isn't.
I want to give an access to my postgres DB for a user so he can have a read only data for 2 tables in my DB.
So, I have created a role for this:
CREATE ROLE stagiaire WITH
LOGIN
NOSUPERUSER
INHERIT
NOCREATEDB
NOCREATEROLE
NOREPLICATION
ENCRYPTED PASSWORD 'xxx';
Then, I also create a user in the up right menu "Users", user type is "User", and gave him a password.
user: email#gmail.com
pass: mypass
Now, user can login, but he sees nothing, and have access to nothing.
How can I link the user email#gmail.com with role "stagiaire"
I found the solution.
User must login. He sees nothing.
He must add himself the Server, so he must know URL to connect.
in my case, my internal URL: postgres.metadata.svc.cluster.local:5432
Then, he will use his login / password to connect.
Now, he will be able to see all resource, but will only be able to open the one with access granted.
Hope this helps
after installing oracle 19 C it was asking for username and password. what to type in that and how to create a new user with all permissions and authentication rights.(note i tried create user command by login as SYSDBA but it showing error as invalid common user or role name.
enter image description here
[enter image description here][2]
create user c##yourusername identified by tiger;
To create a user in a particular container do follows:
alter session set container
Crate user
Example:
alter session set "_ORACLE_SCRIPT"=true;
CREATE USER your_user_name IDENTIFIED BY your_password
After finished user creation please add grant permission to your user. Otherwise you may not be able to login in with this user.
GRANT Dba to your_user_name
alter session set "_ORACLE_SCRIPT"=true;
After execute the above script user has been created.
So I know in postgres a group is nothing but a role. But I'll still use groups here.
Say I created a group called my_group as superuser.
I am user user_1.
I want to give user_1 permission to add more users into my_group.
What is the command I need to do as superuser to do that?
Use GRANT WITH ADMIN OPTION to do that:
GRANT my_group TO user_1 WITH ADMIN OPTION;
More info here.