Received: from xyzzy.lan.internal (d226-80-178.home.cgocable.net [24.226.80.178]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBH8xTm74883 for ; Mon, 17 Dec 2001 03:59:29 -0500 (EST) (envelope-from drew@xyzzy.dhs.org) Received: from localhost ([127.0.0.1] ident=drew) by xyzzy.lan.internal with esmtp (Exim 3.33 #1 (Debian)) id 16FtcK-0000DE-00; Mon, 17 Dec 2001 03:59:24 -0500 Subject: Re: All users can enter as one user "puser" without From: "Andrew G. Hammond" To: Jameson Burt Cc: pgsql-admin@postgresql.org, jameson@coost.com In-Reply-To: <20011217014202.A31762@rabbit.burtnet> References: <20011217014202.A31762@rabbit.burtnet> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-8iJT6L3rDnrITnGf9bpp" X-Mailer: Evolution/1.0 (Preview Release) Date: 17 Dec 2001 03:59:22 -0500 Message-Id: <1008579564.722.1.camel@xyzzy> Mime-Version: 1.0 X-Archive-Number: 200112/104 X-Sequence-Number: 2827 --=-8iJT6L3rDnrITnGf9bpp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2001-12-17 at 01:42, Jameson Burt wrote: > I seek a simplistic access, >=20 > 1. superuser "postgres" gets access when his system-name is "postgres", > but not otherwise [some security sought]. > This can be done in pg_hba.conf with either=20 > local all peer sameuser > local all trust #but anyone then gets "postges" access. >=20 > 2. One other user, say "puser", gets access whatever his system-name. > The above > local all peer sameuser > disallows an arbitrary username entering as "psql template1 -U puser". > One can use > host all 127.0.0.1 255.0.0.0 ident jimsmap=20 > then have pg_ident.conf with 1000 user entries like > jimsmap jameson puser > However, I seek a simpler method for numerous users,=20 > each of whom will be granted access as user "puser". > ANY IDEAS? Have each user log in from the same UNIX account. Instead of trying to make all users into one user, which is almost never a good idea, why not just use the PUBLIC concept in the database's access control system? Give each user their own userid, and GRANT necessary access to PUBLIC. --=20 Andrew G. Hammond mailto:drew@xyzzy.dhs.org=20=20 http://xyzzy.dhs.org/~drew/ 56 2A 54 EF 19 C0 3B 43 72 69 5B E3 69 5B A1 1F=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 613-389-5481 5CD3 62B0 254B DEB1 86E0 8959 093E F70A B457 84B1 "To blow recursion you must first blow recur" -- me --=-8iJT6L3rDnrITnGf9bpp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iQCVAwUAPB2z6caBTSA3ULb1AQJkFAP/ZgKwUo0B+59g2tQj+HH8qEKSOkle1JFZ CmicCK7B3rSCi/4uFwavRi5wmYETktj89Tg07LcemRelkR4/70wiHKBMKjcaX5KH QOqozR1yTlIp8UJdfOp8AIlZUwrBg1JRf4Mr80QxRNEm+lSRjRa6JPqf/7J9ztCj 5pZCH/Humio= =pGEH -----END PGP SIGNATURE----- --=-8iJT6L3rDnrITnGf9bpp--