Date: Wed, 9 Jul 2003 14:28:02 +0200 (CEST) From: Lukas Ertl <l.ertl@univie.ac.at> To: Ian Freislich <ianf@za.uu.net> Cc: Larry Rosenman <ler@lerctr.org> Subject: Re: pgsql logged in on console - su/PAM problem? Message-ID: <20030709142424.H16193@pcle2.cc.univie.ac.at> In-Reply-To: <28217.1057743330@mci.com> References: <48810000.1057668168@lerlaptop.lerctr.org> <28217.1057743330@mci.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Jul 2003, Ian Freislich wrote: > Larry Rosenman wrote: > > > > --On Tuesday, July 08, 2003 13:58:19 +0200 Lukas Ertl <l.ertl@univie.ac= =2Eat> > > wrote: > > > > > Hi, > > > > > > can anyone explain why the pgsql user is logged in on console nowaday= s? > > 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 --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX-Systemadministrator Tel.: (+43 1) 4277-14073 Zentraler Informatikdienst (ZID) Fax.: (+43 1) 4277-9140 der Universit=E4t Wien http://mailbox.univie.ac.at/~le/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030709142424.H16193>