Received: from thor.tht.net (thor.tht.net [209.47.145.4]) by hub.org (8.10.1/8.11.0) with ESMTP id e9QGoqU56949 for ; Thu, 26 Oct 2000 12:50:52 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from mail.enterprise.net (mail.enterprise.net [194.72.192.18]) by thor.tht.net (8.9.3/8.9.3) with ESMTP id MAA94740 for ; Thu, 26 Oct 2000 12:29:20 GMT (envelope-from olly@lfix.co.uk) Received: from linda.lfix.co.uk (cmax04-133.enterprise.net [212.161.114.133]) by mail.enterprise.net (8.8.5/8.8.5) with ESMTP id RAA00758; Thu, 26 Oct 2000 17:42:48 +0100 (GMT/BST) Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id e9QGgiM01915; Thu, 26 Oct 2000 17:42:44 +0100 Message-Id: <200010261642.e9QGgiM01915@linda.lfix.co.uk> X-Authentication-Warning: linda.lfix.co.uk: Host olly@localhost [127.0.0.1] claimed to be lfix.co.uk X-Mailer: exmh version 2.2 06/23/2000 (debian 2.2-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-admin@postgresql.org Subject: Re: pg_user, changing priviliges In-reply-to: Message from Marcin Mazurek of Thu, 26 Oct 2000 08:24:56 +0200. <20001026082456.B6461@poznan.mtl.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Thu, 26 Oct 2000 17:42:44 +0100 From: "Oliver Elphick" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id e9QHHQO73720 X-Archive-Number: 200010/120 X-Sequence-Number: 914 Marcin Mazurek wrote: >I'm trying to give a createuser privilige by changing pg_users, i'm logged >in as a superuser. > >mtldb=# select count(*) from pg_user where usename='mtluser'; > count >------- > 1 >(1 row) > >mtldb=# update pg_user set usesuper=true, usecatupd=true where >usename='mtluser'; >UPDATE 0 > >Why I can't do it? pg_user is a view; you should be updating pg_shadow -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Whosoever therefore shall be ashamed of me and of my words in this adulterous and sinful generation; of him also shall the Son of man be ashamed, when he cometh in the glory of his Father with the holy angels." Mark 8:38