| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> | 
|---|---|
| To: | Andreas(dot)Zeugswetter(at)telecom(dot)at (Zeugswetter Andreas SARZ) | 
| Cc: | pgsql-hackers(at)hub(dot)org | 
| Subject: | Re: [HACKERS] Solution to the pg_user passwd problem !?? (c) | 
| Date: | 1998-02-19 14:50:32 | 
| Message-ID: | 199802191450.JAA18313@candle.pha.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
> 
> Hi all,
> 
> What about:
> grant select on pg_user to public;
> create rule pg_user_hide_pw as on
> select to pg_user.passwd
> do instead select '********' as passwd;
When I see this, the word 'genius' comes to mind.  What a brilliantly
elegant solution to the problem.
> 
> Then if I do:
> select * from pg_user;
> usename |usesysid|usecreatedb|usetrace|usesuper|usecatupd|passwd  |valuntil
> --------+--------+-----------+--------+--------+---------+--------+---------
> -------------------
> postgres|       6|t          |t       |t       |t        |********|Sat Jan
> 31 07:00:00 2037 NFT
> zeus    |      60|t          |t       |f       |t        |********|
> (2 rows)
> 
> Also the \d works for all users !
> 
> Only "disadvantage" is that noone can read passwd without first dropping the
> rule pg_user_hide_pw,
> I consider this a feature though ;-)
> 
> Since the userauthentication bypasses the rewrite mechanism the logins,
> alter user .. and others do work !
> 
> Can all of you try to crack this ?
> 
> (c) Andreas Zeugswetter
> 
> Copyright by Andreas Zeugswetter 1998 contributed to the postgresql project
> ;-)
> Wow, I am actually proud of this (so far, and hope it holds what I think it
> does)
> 
> 
> 
-- 
Bruce Momjian
maillist(at)candle(dot)pha(dot)pa(dot)us
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Wieck | 1998-02-19 14:55:07 | Re: [HACKERS] Solution to the pg_user passwd problem !?? (c) | 
| Previous Message | Bruce Momjian | 1998-02-19 14:31:50 | Re: pg_user permissions problem (Was: Re: [HACKERS] RE: New ecgp code problem.) |