X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E460B9FA350 for ; Tue, 4 Jul 2006 09:31:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 92796-04 for ; Tue, 4 Jul 2006 09:31:38 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id 088F09FA2F3 for ; Tue, 4 Jul 2006 09:31:36 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id c29so1071630nfb for ; Tue, 04 Jul 2006 05:31:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ar/Nnn2au9VhnSSRvEQdkQpXC3dowpHU3SlFM9CHfcLaUriGSEOx57sKisa9COQEBkxvVURFARTkGNJE6M0EWRTV7DTGxudoHGzivuqtM7cMUtE0oyyaJaDXLyemd5XVHJhYpvjjw2Ss0kbzxMacvvHtY8LQxvJlrf3NoBAE0wk= Received: by 10.78.164.13 with SMTP id m13mr2713707hue; Tue, 04 Jul 2006 05:31:35 -0700 (PDT) Received: by 10.78.154.13 with HTTP; Tue, 4 Jul 2006 05:31:35 -0700 (PDT) Message-ID: <224a3e7e0607040531t33821d87t7d21920637417bf5@mail.gmail.com> Date: Tue, 4 Jul 2006 18:01:35 +0530 From: "MJ Santhosh" To: "Penchalaiah P." Subject: Re: i have a problem of privilages Cc: pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11103_13486411.1152016295263" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/37 X-Sequence-Number: 25611 ------=_Part_11103_13486411.1152016295263 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I am not an expert in postgres, may this work for you. REVOKE INSERT,UPDATE,DELETE ON ALL from PUBLIC; it will take the INSERT,UPDATE,DELETE permmission from all users for all objects in the database. If you want to give permission for a specific user on all objects GRANT ALL on ALL to ; Please make a backup before doing this , good for always I am not sure is this is want you want. On 7/4/06, Penchalaiah P. wrote: > > I have 290 tables .. to these tables one schema is there .. that name is > public=85.so I don't know how to create permission to these tables.. eith= er I > have to give permissions to individual table.. or I have to give permissi= ons > to schema or schema name=85 if I give permission to schema it has to > applicable to all tables.. > > > > I created one user with password=85 then finally I don't know how to > allocate permission to him.. please tell me very briefly step by step.. t= hen > I can understand=85 > > Please tell me if any one knows about this=85=85.. > > > ------------------------------ > > *From:* MJ Santhosh [mailto:mjsanthosh@gmail.com] > *Sent:* Tuesday, July 04, 2006 5:47 PM > *To:* Penchalaiah P. > *Cc:* pgsql-sql@postgresql.org; Richard Broersma Jr > *Subject:* Re: [SQL] i have a problem of privilages > > > > > create a user with limited permmission and give the same to the remote > users. > May be that will solve your problem. > > > > *REVOKE INSERT,UPDATE,DELETE ON welcome from PUBLIC; * > > On 7/4/06, *Penchalaiah P.* wrote: > > Hi good afternoon to every one.. > > > > Now I am accessing remote database server in postgresql.. but I can see > all tables and functions in remote database server but I can > delete,update,alter and drop tables in remote database server from my loc= al > machine.. to avoid these things wt I have to do=85 > > Just they have to see my tables and structure.. and they cant do any more > operations on the tables.. to avoid this wt can I do please tell me solut= ion > =85 > > > > > > *Thanks & Regards * > > *Penchal reddy **|** Software Engineer * > > *Infinite Computer Solutions **|** Exciting Times=85Infinite > Possibilities... * > > *SEI-CMMI level 5 **| **ISO 9001:2000* > > *IT SERVICES **|**BPO > * > > *Telecom **|** **Finance **|** **Healthcare **| **Manufacturing **|** **E= nergy > & Utilities **|** **Retail & Distribution **|** **Government > * > > *Tel +91-80-5193-0000(Ext:503)** **|** Fax +91-80-51930009 **|** **Cell > No +91-9980012376** |** www.infics.com** * > > *Information transmitted by this e-mail is proprietary to Infinite > Computer Solutions and/ or its Customers and is intended for use only by = the > individual or entity to which it is addressed, and may contain informatio= n > that is privileged, confidential or exempt from disclosure under applicab= le > law. If you are not the intended recipient or it appears that this mail h= as > been forwarded to you without proper authority, you are notified that any > use or dissemination of this information in any manner is strictly > prohibited. In such cases, please notify us immediately at** ** > info.in@infics.com **and delete this mail from your records. * > > > > Information transmitted by this e-mail is proprietary to Infinite Compute= r > Solutions and / or its Customers and is intended for use only by the > individual or the entity to which it is addressed, and may contain > information that is privileged, confidential or exempt from disclosure un= der > applicable law. If you are not the intended recipient or it appears that > this mail has been forwarded to you without proper authority, you are > notified that any use or dissemination of this information in any manner = is > strictly prohibited. In such cases, please notify us immediately at > info.in@infics.com and delete this email from your records. > > > > > -- > Information transmitted by this e-mail is proprietary to Infinite > Computer Solutions and / or its Customers and is intended for use only by > the individual or the entity to which it is addressed, and may contain > information that is privileged, confidential or exempt from disclosure un= der > applicable law. If you are not the intended recipient or it appears that > this mail has been forwarded to you without proper authority, you are > notified that any use or dissemination of this information in any manner = is > strictly prohibited. In such cases, please notify us immediately at > info.in@infics.com and delete this email from your records. > _________________________________________________________ it is your attitude, and not the aptitude, that determines your altitude. _________________________________________________________ ------=_Part_11103_13486411.1152016295263 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline  I am not an expert in postgres, may this work for you.

REVOKE = INSERT,UPDATE,DELETE ON ALL from PUBLIC;


it will take the INSERT= ,UPDATE,DELETE permmission from all users for all objects in the database. =

If you want to give permission for a specific user on all objects
<= br>GRANT ALL on ALL to <user_name>;
=
Please m= ake a backup before doing this , good for always
I am not sure is this is want you want.



On 7/4/06, = Penchalaiah P. <penchalai= ahp@infics.com > wrote:

I have 290 tables .. to these tabl= es one schema is there .. that name is public=85.so I don't know how to create permission to these tables.. either I have to give permissions to individua= l table.. or I have to give permissions to schema or schema name=85 if I give= permission to schema it has to applicable to all tables..

 

I created one user  with pass= word=85 then finally I don't know how to allocate permission to him.. please tell me very briefl= y step by step.. then I can understand=85

Please tell me if any one knows ab= out this=85=85..

 


From: MJ= Santhosh [mailto:mjsanthosh@gmail.com]=
Sent: Tuesday, July 04, 20= 06 5:47 PM
To: Penchalaiah P.
Cc: pgsql-sql@postgresql.org; Richard Broersma Jr
Subject: Re: [SQL] i have = a problem of privilages

 


  create a user with limited permmission and give the same to the remo= te users.
May be that will solve your problem.



REVOKE INSERT,UPDATE,DELETE ON welcom= e from PUBLIC;

On 7/4/06, Penchalaiah P. < penchalaiahp@infics.com> wrote:

Hi good afternoon to every one..

 

Now I am accessing remote database server in postgresql.. but I can see all tab= les and functions in remote database server but I can delete,update,alter and d= rop tables in remote database server from my local machine.. to avoid these thi= ngs wt I have to do=85

Just they have to see my tables and structure.. and they cant do any more operat= ions on the tables.. to avoid this wt can I do please tell me solution =85

 

 

Thanks = ; &  Regards

Penchal red= dy | Software Engineer           <= /b>

Infinite Co= mputer Solutions | Exciting Times=85Infinite Possibilities...

SEI-CMMI le= vel 5 <= span style=3D"font-size: 8pt; font-family: Tahoma; color: red; font-weight:= bold;"> | ISO 9001:2000

IT SERVICES= | BPO            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =         

Telecom | Finance Healthcare | Manufacturing Energy & Utilities | Retail & Distribution | Government           = ;            &n= bsp;            = ;            &n= bsp;      

Tel +91-80-= 5193-0000(Ext:503) | Fax  +91-80-51930009 | Cell No  +91-9980012376 | www.infics.com        &nb= sp; 

Information= transmitted by this e-mail is proprietary to Infinite Computer Solutions and/ or its Customers = and is intended for use only by the individual or entity to which it is address= ed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or i= t appears that this mail has been forwarded to you without proper authority, = you are notified that any use or dissemination of this information in any manne= r is strictly prohibited. In such cases, please notify us immediately at<= /font>= = info.in@infics.com and delete this mail from your records.

 

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and / or its Customers and = is intended for use only by the individual or the entity to which it is addressed, and may contain information that is privileged, confidential o= r exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@in= fics.com and delete this email from your records.




--

Informati= on transmitted by this e-mail is proprietary to Infinite Computer Solutions= and / or its Customers and is intended for use only by the individual or t= he entity to which it is addressed, and may contain information that is pri= vileged, confidential or exempt from disclosure under applicable law. If yo= u are not the intended recipient or it appears that this mail has been forw= arded to you without proper authority, you are notified that any use or dis= semination of this information in any manner is strictly prohibited. In suc= h cases, please notify us immediately at=20 info.in@infics.com and delete thi= s email from your records.


_____________________= ____________________________________
it is your attitude, and not the ap= titude, that determines your altitude.
_________________________________= ________________________ ------=_Part_11103_13486411.1152016295263--