Re: [INTERFACES] libpq & user - Mailing list pgsql-interfaces

From James Olin Oden
Subject Re: [INTERFACES] libpq & user
Date
Msg-id 81Jul15.105800edt.35715@gateway.lee.k12.nc.us
Whole thread Raw
In response to libpq & user  (Robert Knop <rknop@panisse.lbl.gov>)
List pgsql-interfaces
> \The problem is, lots of different people will be using this, and I'm
> trying to avoid having to put all of the various usernames in the Postgres
> shadow file by having everybody connect as user deep.  I have not found
> anywhere in the documentation how to set the user with libpq; what I've
> tried here is based on analogy to the Pg Perl module (which I have been
> able to get working).
>

Try changing the owner of your C program to deep.  Then set the setuid bit.  At
that point anyone running your program will be user deep.



pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [DOCS] Re: [INTERFACES] libpq & user
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [DOCS] Re: [INTERFACES] libpq & user