Re: [INTERFACES] libpq & user

From: James Olin Oden <joden(at)Lee(dot)k12(dot)nc(dot)us>
To: rknop(at)mh1(dot)lbl(dot)gov, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] libpq & user
Date: 1998-07-16 16:07:09
Message-ID: 81Jul15.105800edt.35715@gateway.lee.k12.nc.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-07-16 16:23:18 Re: [DOCS] Re: [INTERFACES] libpq & user
Previous Message Bruce Momjian 1998-07-16 15:33:35 Re: [INTERFACES] Re: [HACKERS] changes in 6.4