pgsql logged in on console - su/PAM problem?
Lukas Ertl
l.ertl at univie.ac.at
Tue Jul 8 04:58:27 PDT 2003
Hi,
can anyone explain why the pgsql user is logged in on console nowadays?
# w
1:24PM up 3 days, 22:52, 3 users, load averages: 0.24, 0.40, 0.37
USER TTY FROM LOGIN@ IDLE WHAT
pgsql console - Fri02PM 3days -
Postgresql is installed from ports, and I never noticed that behaviour
before. The startup script looks like this:
---8<---
case $1 in
start)
touch ${logfile}
chmod 600 ${logfile}
chown pgsql:pgsql ${logfile}
[ -x ${PGBIN}/pg_ctl ] && {
su -l pgsql -c \
"[ -d \${PGDATA} ] && exec ${PREFIX}/bin/pg_ctl start -s -w -l
${logfile}"
echo -n ' pgsql'
}
;;
---8<---
Could it be that su and/or PAM have a problem?
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