pgsql logged in on console - su/PAM problem? 
    Lukas Ertl 
    l.ertl at univie.ac.at
       
    Wed Jul  9 05:28:16 PDT 2003
    
    
  
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/
    
    
More information about the freebsd-current
mailing list