Recht um eigenes Passwort zu ändern

Werbung:
gleich mal probiert:

Code:
LAPTOP106OXUK:minikube andreaskretschmer$ kubectl exec --stdin --tty pg15-server-1 -- psql
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
psql (15.0 (Debian 15.0-1.pgdg110+1))
Type "help" for help.

postgres=# create user user1 password 'user1';
CREATE ROLE
postgres=# create user user2 password 'user2';
CREATE ROLE
postgres=# 
\q

...

LAPTOP106OXUK:minikube andreaskretschmer$ kubectl exec --stdin --tty pg15-server-1 -- psql -h localhost -p 5432 -U user1 postgres
Defaulted container "postgres" out of: postgres, bootstrap-controller (init)
Password for user user1: 
psql (15.0 (Debian 15.0-1.pgdg110+1))
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, compression: off)
Type "help" for help.
postgres=> alter user user2 password 'ganz neu';
ERROR:  permission denied
postgres=>


Uff, noch mal Glück gehabt ;-)
 
Werbung:
Zurück
Oben