Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jul 2003 11:35:30 +0200
From:      Ian Freislich <ianf@za.uu.net>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        Lukas Ertl <l.ertl@univie.ac.at>
Subject:   Re: pgsql logged in on console - su/PAM problem? 
Message-ID:  <28217.1057743330@mci.com>
In-Reply-To: Your message of "Tue, 08 Jul 2003 07:42:48 EST." <48810000.1057668168@lerlaptop.lerctr.org> 
References:  <48810000.1057668168@lerlaptop.lerctr.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Larry Rosenman wrote:
> 
> 
> --On Tuesday, July 08, 2003 13:58:19 +0200 Lukas Ertl <l.ertl@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 ...'.

I've been able to reproduce this with an arbitrary user by doing
the following, but haven't debugged further:

ne-dead] ~ # w
11:34AM  up 22:26, 2 users, load averages: 2.46, 2.45, 2.44
USER             TTY      FROM              LOGIN@  IDLE WHAT
pgsql            console  -                Tue01PM 22:25 -
ianf             p0       copernicus.so.cp 11:34AM     - w
[brane-dead] ~ # su - games
Last login: Wed Jul  9 11:33:30 on ttyp0
This account is currently not available.
[brane-dead] ~ # w
11:34AM  up 22:26, 2 users, load averages: 2.55, 2.47, 2.45
USER             TTY      FROM              LOGIN@  IDLE WHAT
pgsql            console  -                Tue01PM 22:25 -
games            p0       -                11:34AM     - w
[brane-dead] ~ # exit
exit
[brane-dead] ~ $ w
11:34AM  up 22:26, 2 users, load averages: 2.50, 2.46, 2.45
USER             TTY      FROM              LOGIN@  IDLE WHAT
pgsql            console  -                Tue01PM 22:25 -
games            p0       -                11:34AM     - w

Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?28217.1057743330>