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: [EMAIL PROTECTED]
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/
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to