Re: pgsql logged in on console - su/PAM problem?

From: Lukas Ertl <l.ertl_at_univie.ac.at>
Date: Wed, 9 Jul 2003 14:28:02 +0200 (CEST)
On Wed, 9 Jul 2003, Ian Freislich wrote:

> Larry Rosenman wrote:
> >
> > --On Tuesday, July 08, 2003 13:58:19 +0200 Lukas Ertl <l.ertl_at_univie.ac.at>
> > wrote:
> >
> > > Hi,
> > >
> > > can anyone explain why the pgsql user is logged in on console nowadays?
> > I'm seeing the same thing, and am also interested in making it stop.
>
> It's got tomething to do with the 'su - pgsql -c ...'.

Yes, it has. It was introduced in rev. 1.15 of /etc/pam.d/su, with:

session  include  system

/etc/pam.d/system has pam_lastlog in the session part, and pam_lastlog
records the login in pam_sm_open_session(), but pam_sm_close_session()
does nothing, instead of removing the wtmp entry again.

regards,
le

-- 
Lukas Ertl                             eMail: l.ertl_at_univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universität Wien                   http://mailbox.univie.ac.at/~le/
Received on Wed Jul 09 2003 - 03:28:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:14 UTC