Received: from montseny-f.ibernet.com (bcnsf.jazztel.es [212.106.195.71] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1ED2SE56330 for ; Thu, 14 Feb 2002 08:02:28 -0500 (EST) (envelope-from manueltrujillo@dorna.es) Received: from klingon.web.es ([212.163.226.3]) by montseny-f.ibernet.com (Post.Office MTA v3.5.3 release 223 ID# 0-70794U9000L900S0V35) with ESMTP id com; Thu, 14 Feb 2002 14:02:29 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=toomany) by klingon.web.es with esmtp (Exim 3.34 #1 (Debian)) id 16bLaY-00012j-00; Thu, 14 Feb 2002 14:06:14 +0100 Subject: Re: hanging psql session while granting... From: Manuel Trujillo To: "Kumar, Lakshmi ""(Cognizant)" Cc: pg-admin In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 14 Feb 2002 14:06:14 +0100 Message-Id: <1013691974.924.23.camel@klingon> Mime-Version: 1.0 X-Archive-Number: 200202/170 X-Sequence-Number: 3326 On Thu, 2002-02-14 at 13:45, Kumar, Lakshmi (Cognizant) wrote: > How can i change the Grants over tables to other users ... is there any > round about way ? > Or where could be the problem. First, I imagine you have permissions to make this. When I want to change the permissions over a table, or tables, I use this: psql name_of_you_database < kk.sql | sed -e '1,3d' | awk '{print "GRANT "$priv" ON "$1" TO "$user";"}'>gdornaout psql motograndprix < gdornaout You need to set $priv (privileges), $user (affected user) firts. -- Manuel Trujillo manueltrujillo@dorna.es Technical Engineer http://www.motograndprix.com Dorna Sports S.L. +34 93 4702864