From: Manuel Trujillo <manueltrujillo@dorna.es>
To: Kumar, Lakshmi ""(Cognizant) <NLakshmi@chn.cognizant.com>
Cc: pg-admin <pgsql-admin@postgresql.org>
Subject: Re: hanging psql session while granting...
Date: 14 Feb 2002 14:06:14 +0100
Message-ID: <1013691974.924.23.camel@klingon> (raw)
In-Reply-To: <DDD04F4480FED411AB5D00508BFD7A44016B0722@CTSINTDLSXUA>
References: <DDD04F4480FED411AB5D00508BFD7A44016B0722@CTSINTDLSXUA>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: manueltrujillo@dorna.es, NLakshmi@chn.cognizant.com
Subject: Re: hanging psql session while granting...
In-Reply-To: <1013691974.924.23.camel@klingon>
References: <DDD04F4480FED411AB5D00508BFD7A44016B0722@CTSINTDLSXUA> <1013691974.924.23.camel@klingon>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox