Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CBAC6475EE1 for ; Mon, 18 Nov 2002 20:41:39 -0500 (EST) Received: from web14407.mail.yahoo.com (web14407.mail.yahoo.com [216.136.174.77]) by postgresql.org (Postfix) with SMTP id 679024766B9 for ; Mon, 18 Nov 2002 20:41:31 -0500 (EST) Message-ID: <20021119014134.82474.qmail@web14407.mail.yahoo.com> Received: from [163.1.103.122] by web14407.mail.yahoo.com via HTTP; Mon, 18 Nov 2002 20:41:34 EST Date: Mon, 18 Nov 2002 20:41:34 -0500 (EST) From: Graham Wilson Subject: Confused about user permissions and pg_hba.conf To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/174 X-Sequence-Number: 6362 Hi all, I have searched through the archives but after 2 days of trying, I still cannot figure out how to get postgres permissions to work the way I need them to. What I am trying to do is setup Postgresql on a Linux server so that users can connect from anywhere on the subnet and edit tables that they themselves have created. I then want other users to be able to access these tables as a 'guest' using the password 'readonly'. At the moment, I have, host all xxx.x.242.0 255.255.255.0 ident sameuser in the pg_hda.conf file so that anyone on the subnet can access any table. Given that all users creating databases and making tables in the database have unix accounts, the 'ident sameuser' authentication is fine. Alas, how do I go about creating a user that only has 'readonly' access to the databases/tables? Many users will need to read the tables in a given database but I don't want them to be able to modify the database in any way (i.e. nothing other than select statements). ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca