X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AB31B3A46C8 for ; Wed, 27 Oct 2004 17:53:55 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31207-09 for ; Wed, 27 Oct 2004 16:53:44 +0000 (GMT) Received: from pd4mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by svr1.postgresql.org (Postfix) with ESMTP id 425553A46AC for ; Wed, 27 Oct 2004 17:53:42 +0100 (BST) Received: from pd5mr1so.prod.shaw.ca (pd5mr1so-qfe3.prod.shaw.ca [10.0.141.232]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I69007CE5JYKY30@l-daemon> for pgsql-admin@postgresql.org; Wed, 27 Oct 2004 10:52:46 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd5mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I69004085JYF6G0@pd5mr1so.prod.shaw.ca> for pgsql-admin@postgresql.org; Wed, 27 Oct 2004 10:52:46 -0600 (MDT) Received: from deathstar.tdnet.dennis-it.com (S010600502c01b6cf.cg.shawcable.net [68.147.22.196]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I69001715JYN5@l-daemon> for pgsql-admin@postgresql.org; Wed, 27 Oct 2004 10:52:46 -0600 (MDT) Received: from [10.101.100.1] (trevordennis.com [10.101.100.1]) by deathstar.tdnet.dennis-it.com (Postfix) with ESMTP id A405623C214; Wed, 27 Oct 2004 04:53:50 -0600 (MDT) Date: Wed, 27 Oct 2004 10:52:24 -0600 From: Trevor Dennis Subject: Re: configuring pg_hba.conf file In-reply-to: <20041025085956.68888.qmail@web60402.mail.yahoo.com> To: Jagdish rao Cc: pgsql-admin@postgresql.org Message-id: <417FD248.6030708@trevordennis.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-DennisIT.com-MailScanner-Information: Please contact the ISP for more information X-DennisIT.com-MailScanner: Found to be clean X-DennisIT.com-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.969, required 4, BAYES_00 -4.90, DATE_IN_FUTURE_03_06 1.93) X-MailScanner-From: tdennis@trevordennis.com References: <20041025085956.68888.qmail@web60402.mail.yahoo.com> User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FAKE_HELO_SHAW_CA X-Spam-Level: X-Archive-Number: 200410/352 X-Sequence-Number: 15345 Hi Jagdish, You shouldn't be listing each IP address in the file. If you want a specific IP address then the netmask should have been 255.255.255.255 to indicate that all octets are required for the address comparison. For your subnet you should have an IP subnet of 192.168.0.0 and a netmask of 255.255.255.0. This netmask says that only the first three octets should be compared and the last one can be anything. Trev. Jagdish rao wrote: >hi friends > >i have postgresql running on a linux box >we are around 25 developers in the local network using >it >for development > >i wanted to know whether this is a way by which all >the users in my domain would get access to postgres >instead of entering all the ip addreses in the conf >file > >some thing like >192.168.0.* 255.255.255.0 > >instead of specifying all the IP's like this > ># TYPE DATABASE USER IP-ADDRESS >IP-MASK METHOD > >local all all > trust >host all all 127.0.0.1 >255.255.255.255 trust >host all all 192.168.0.9 >255.255.255.0 trust >host all all 192.168.0.4 >255.255.255.0 trust > > >thanks in advance >Jagdish Rao > > > >