pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
let users change their password
4+ messages / 2 participants
[nested] [flat]

* let users change their password
@ 2010-08-25 00:20 Andreas <maps.on@gmx.net>
  2010-08-25 01:29 ` Re: let users change their password Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Andreas @ 2010-08-25 00:20 UTC (permalink / raw)
  To: pgsql-admin

  Hi,

how can I let users change their own password but noone else's ?

I could restrict this within our client-app but then I'm skrewed when 
some smarty connects directly with psql.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: let users change their password
  2010-08-25 00:20 let users change their password Andreas <maps.on@gmx.net>
@ 2010-08-25 01:29 ` Tom Lane <tgl@sss.pgh.pa.us>
  2010-08-25 02:31   ` Re: let users change their password Andreas <maps.on@gmx.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2010-08-25 01:29 UTC (permalink / raw)
  To: Andreas <maps.on@gmx.net>; +Cc: pgsql-admin

Andreas <maps.on@gmx.net> writes:
> how can I let users change their own password but noone else's ?

Uh, that's the normal behavior, no?  At least for non-superusers.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: let users change their password
  2010-08-25 00:20 let users change their password Andreas <maps.on@gmx.net>
  2010-08-25 01:29 ` Re: let users change their password Tom Lane <tgl@sss.pgh.pa.us>
@ 2010-08-25 02:31   ` Andreas <maps.on@gmx.net>
  2010-08-25 02:37     ` Re: let users change their password Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Andreas @ 2010-08-25 02:31 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

  Am 25.08.2010 03:29, schrieb Tom Lane:
> Andreas writes:
>> how can I let users change their own password but noone else's ?
> Uh, that's the normal behavior, no?  At least for non-superusers.
aaaaaarghl ... right ...   8-}

Thanks Tom

Now, lets make it more difficult then.
Is there a way to have a sub-admin who should be able to create and drop 
roles as well as change passwords for every user who is  non-superuser  
(or at least not for me and postgres).
I prefered not to get locked out when I delegate the user management.


Andreas



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: let users change their password
  2010-08-25 00:20 let users change their password Andreas <maps.on@gmx.net>
  2010-08-25 01:29 ` Re: let users change their password Tom Lane <tgl@sss.pgh.pa.us>
  2010-08-25 02:31   ` Re: let users change their password Andreas <maps.on@gmx.net>
@ 2010-08-25 02:37     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2010-08-25 02:37 UTC (permalink / raw)
  To: Andreas <maps.on@gmx.net>; +Cc: pgsql-admin

Andreas <maps.on@gmx.net> writes:
> Now, lets make it more difficult then.
> Is there a way to have a sub-admin who should be able to create and drop 
> roles as well as change passwords for every user who is  non-superuser  
> (or at least not for me and postgres).

Yeah, in recent releases an account with CREATEROLE privilege acts like
that.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2010-08-25 02:37 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-08-25 00:20 let users change their password Andreas <maps.on@gmx.net>
2010-08-25 01:29 ` Tom Lane <tgl@sss.pgh.pa.us>
2010-08-25 02:31   ` Andreas <maps.on@gmx.net>
2010-08-25 02:37     ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox