sql user management
sql user management
От:
Vladislav Breus <vlad@dtr.donetsk.ua>
Дата:
With SQL requests I can create, change privileges of the user... Can I access to user information only with sql-requests ? - Is the user a member of group ? - Has he rights to table
Re: sql user management
От:
george young <gry@ll.mit.edu>
Дата:
On Mon, 28 May 2001 17:03:32 +0300 Vladislav Breus wrote: > With SQL requests I can create, change privileges of the user... > > Can I access to user information only with sql-requests ? > - Is the user a member of group ? Use the contrib module 'array': [cd $SOURCE/contrib/arraymakemake install] Then, to find what groups 'young' is in, one can do: select g.groname from pg_group g, pg_shadow s where s.usename='young' and g.grolist *= s.usesysid; or select g.grolist *= s.usesysid from pg_group g, pg_shadow s where s.usename='young' and g.groname='originator'; just to see wether or not 'young' is in group 'originator'. > - Has he rights to table