pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
changing privleges in pg_user/shadow
4+ messages / 3 participants
[nested] [flat]

* changing privleges in pg_user/shadow
@ 2000-02-10 18:31  mike focosi <mike@goldendome.com>
  0 siblings, 2 replies; 4+ messages in thread

From: mike focosi @ 2000-02-10 18:31 UTC (permalink / raw)
  To: pgsql-admin

hello all,

i am wondering if it is possible to change the attributes in pg_user and
pg_shadow for a paticular user. i can't seem to find any documentation on
'updating' users other than createuser and dropuser. is it possible to
change the users' attributes? for example could this doesn't seem to work:

mydb=>update pg_user set usecreatedb = 'f' where usename = 'mike';

the result is 0 records updated.

any help or pointers to some documention on this is greatly appreciated.

thanks
-mike

mike focosi
senior applications programmer
golden dome media
http://www.gdp.net
http://www.surfmichiana.com
http://www.wndu.com




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

* Re: [ADMIN] changing privleges in pg_user/shadow
@ 2000-02-10 18:53  Karl DeBisschop <kdebisschop@range.infoplease.com>
  parent: mike focosi <mike@goldendome.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Karl DeBisschop @ 2000-02-10 18:53 UTC (permalink / raw)
  To: mike@goldendome.com; +Cc: pgsql-admin


>i am wondering if it is possible to change the attributes in pg_user and
>pg_shadow for a paticular user. i can't seem to find any documentation on
>'updating' users other than createuser and dropuser. is it possible to
>change the users' attributes? for example could this doesn't seem to work:
>
>mydb=>update pg_user set usecreatedb = 'f' where usename = 'mike';

pg_user is anon-updatable view.

If you are a superuser, however, you can update pg_shadow.

-- 
Karl DeBisschop <kdebisschop@alert.infoplease.com>
617.832.0332 (Fax: 617.956.2696)

Information Please - your source for FREE online reference
http://www.infoplease.com  - Your Ultimate Fact Finder
http://kids.infoplease.com - The Great Homework Helper

Netsaint Plugins Development
http://netsaintplug.sourceforge.net



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

* Re: [ADMIN] changing privleges in pg_user/shadow
@ 2000-02-10 20:05  mike focosi <mike@goldendome.com>
  parent: Karl DeBisschop <kdebisschop@range.infoplease.com>
  0 siblings, 0 replies; 4+ messages in thread

From: mike focosi @ 2000-02-10 20:05 UTC (permalink / raw)
  To: kdebisschop@range.infoplease.com; +Cc: pgsql-admin

i figured it out. found the 'alter user' table documentation. seems to be
what i needed.

thanks for your help.

mike focosi
senior applications programmer
golden dome media
http://www.gdp.net
http://www.surfmichiana.com
http://www.wndu.com
----- Original Message -----
From: Karl DeBisschop <kdebisschop@range.infoplease.com>
To: <mike@goldendome.com>
Cc: <pgsql-admin@postgreSQL.org>
Sent: Thursday, February 10, 2000 1:53 PM
Subject: Re: [ADMIN] changing privleges in pg_user/shadow


>
> >i am wondering if it is possible to change the attributes in pg_user and
> >pg_shadow for a paticular user. i can't seem to find any documentation on
> >'updating' users other than createuser and dropuser. is it possible to
> >change the users' attributes? for example could this doesn't seem to
work:
> >
> >mydb=>update pg_user set usecreatedb = 'f' where usename = 'mike';
>
> pg_user is anon-updatable view.
>
> If you are a superuser, however, you can update pg_shadow.
>
> --
> Karl DeBisschop <kdebisschop@alert.infoplease.com>
> 617.832.0332 (Fax: 617.956.2696)
>
> Information Please - your source for FREE online reference
> http://www.infoplease.com  - Your Ultimate Fact Finder
> http://kids.infoplease.com - The Great Homework Helper
>
> Netsaint Plugins Development
> http://netsaintplug.sourceforge.net
>




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

* Re: [ADMIN] changing privleges in pg_user/shadow
@ 2000-02-10 20:08  Peter Eisentraut <peter_e@gmx.net>
  parent: mike focosi <mike@goldendome.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Peter Eisentraut @ 2000-02-10 20:08 UTC (permalink / raw)
  To: mike focosi <mike@goldendome.com>; +Cc: pgsql-admin

See ALTER USER.

On 2000-02-10, mike focosi mentioned:

> hello all,
> 
> i am wondering if it is possible to change the attributes in pg_user and
> pg_shadow for a paticular user. i can't seem to find any documentation on
> 'updating' users other than createuser and dropuser. is it possible to
> change the users' attributes? for example could this doesn't seem to work:
> 
> mydb=>update pg_user set usecreatedb = 'f' where usename = 'mike';
> 
> the result is 0 records updated.
> 
> any help or pointers to some documention on this is greatly appreciated.
> 
> thanks
> -mike
> 
> mike focosi
> senior applications programmer
> golden dome media
> http://www.gdp.net
> http://www.surfmichiana.com
> http://www.wndu.com
> 
> 
> ************
> 
> 

-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




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


end of thread, other threads:[~2000-02-10 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-02-10 18:31 changing privleges in pg_user/shadow mike focosi <mike@goldendome.com>
2000-02-10 18:53 ` Karl DeBisschop <kdebisschop@range.infoplease.com>
2000-02-10 20:05   ` mike focosi <mike@goldendome.com>
2000-02-10 20:08 ` Peter Eisentraut <peter_e@gmx.net>

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