AW: [HACKERS] Re: [GENERAL] users in Postgresql

From: Zeugswetter Andreas SEV <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: AW: [HACKERS] Re: [GENERAL] users in Postgresql
Date: 1999-11-08 22:00:29
Message-ID: 219F68D65015D011A8E000006F8590C603FDC159@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > CREATE USER sql command updates the file, but an UPDATE on pg_shadow
> > does not.
>
> How about INSERT INTO pg_shadow? Or how do you judge the
> following excerpt
> from the createuser script:
>
> QUERY="insert into pg_shadow \
> (usename, usesysid, usecreatedb, usetrace, usesuper,
> usecatupd) \
> values \
> ('$NEWUSER', $SYSID, '$CANCREATE', 'f', '$CANADDUSER','f')"
>
> Fortunately (perhaps), I am getting rid of this as we're
> speaking. The one
> feature the createuser script has over the CREATE USER "SQL"
> command is
> that you can pick your system ID. Ignoring the question whether or not
> this has any real purpose, it seems this is almost like
> rolling dice since

The sysid is essential for one of the authentication methods available in
PostgreSQL
(was it ident, I forgot) where the unix system password was used.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-11-08 22:55:33 Indent
Previous Message Peter Eisentraut 1999-11-08 21:22:58 Re: [HACKERS] New NameStr() macro, RelationGetRelationName fixes