From: James Olin Oden <joden@Lee.k12.nc.us>
To: rknop@mh1.lbl.gov
To: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] libpq & user
Date: Thu, 16 Jul 1998 12:07:09 -0400
Message-ID: <81Jul15.105800edt.35715@gateway.lee.k12.nc.us> (raw)
References: <Pine.SOL.3.95.980714135850.7053F-100000@panisse.lbl.gov>
> \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.
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: joden@Lee.k12.nc.us, rknop@mh1.lbl.gov
Subject: Re: [INTERFACES] libpq & user
In-Reply-To: <81Jul15.105800edt.35715@gateway.lee.k12.nc.us>
* 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