Received: from lee.k12.nc.us (mail.lee.k12.nc.us [207.4.71.118]) by hub.org (8.8.8/8.7.5) with ESMTP id MAA03887 for ; Thu, 16 Jul 1998 12:04:45 -0400 (EDT) Received: by gateway.lee.k12.nc.us id <35715>; Wed, 15 Jul 1981 10:58:00 -0400 Date: Thu, 16 Jul 1998 12:07:09 -0400 From: James Olin Oden X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: rknop@mh1.lbl.gov, pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] libpq & user References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <81Jul15.105800edt.35715@gateway.lee.k12.nc.us> > \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.