pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dallas N Antley <dna+pgsql@clas.ufl.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: 7.4.3 and PAM authentication failures
Date: Mon, 16 Aug 2004 22:06:49 -0400
Message-ID: <200408170206.i7H26nS27612@clas.ufl.edu> (raw)
In-Reply-To: <18655.1092699344@sss.pgh.pa.us>

/- On Monday (8/16/2004 19:35) Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dallas N Antley <dna+pgsql@clas.ufl.edu> writes:
> > I think I know why pam authentication fails with the pam_unix*
> > modules, but would appreciate your opinion.
> 
> I think you've proven that the particular PAM modules you are testing
> with are useless for programs executing as non-root, but that doesn't
> mean the entire concept is broken.  Look around ... there are lots of
> PAM modules (or at least that's the theory).

Correct.  I'm only referring to pam_unix* modules.  This has come up
on the list a few times, but there's never been a "solution" in any of
the replies.

http://archives.postgresql.org/pgsql-admin/2003-02/msg00301.php
http://archives.postgresql.org/pgsql-admin/2003-01/msg00352.php
http://archives.postgresql.org/pgsql-admin/2002-10/msg00066.php
http://archives.postgresql.org/pgsql-admin/2002-08/msg00281.php
http://archives.postgresql.org/pgsql-admin/2002-06/msg00110.php
http://archives.postgresql.org/pgsql-admin/2002-05/msg00233.php
http://archives.postgresql.org/pgsql-admin/2002-05/msg00075.php

This is why login, dtsession, xscreensaver, etc are setuid under
Solaris, and probably under Linux distributions that use /etc/shadow,
C2-NIS, and/or NIS+.  Given the current security model employed by the
postmaster process, this wouldn't be trivial.

Considering the number of times this came up in the archives, and
after getting stuck myself, I'd like to get this added to the FAQ,
assuming I'm correct in my logic.

> BTW, what are those "door_info()" and "door_call()" calls shown in the
> truss output?  Could it be that those are supposed to get the PAM code
> into a higher authorization level?

Doors are a Solaris-specific (AFAIK) type of inter-process
communication -- similar to sockets, but faster.  They're used inside
the PAM libraries for name service, syslog calls, etc.

			   Dallas



view thread (4+ messages)  latest in thread

Message-ID: <200408170206.i7H26nS27612@clas.ufl.edu>
Permalink:  ../200408170206.i7H26nS27612@clas.ufl.edu/
Also on:    postgresql.org/message-id/200408170206.i7H26nS27612@clas.ufl.edu

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dna+pgsql@clas.ufl.edu, tgl@sss.pgh.pa.us
  Subject: Re: 7.4.3 and PAM authentication failures
  In-Reply-To: <200408170206.i7H26nS27612@clas.ufl.edu>
  References: <18655.1092699344@sss.pgh.pa.us> <200408170206.i7H26nS27612@clas.ufl.edu>

* 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