So, strangest thing happening on Debian PostgreSQL user:
lab3:~# su - postgres
postgres@lab3:~$ plogout
lab3:~#
And:
lab3:~# su postgres
postgres@lab3:/root$ pexit
lab3:~#
What is happening here? Well, if right after I use su to change to the postgres user, using su - or su, I press p (like I was going to write psql) I get logged out by logout or exit. That doesn't happen if I press enter and then press p on the line below, it only happens if the first thing I press is p. Apparently it happens with any character, but sometimes it fails on e or a.
Are you asking WHAAAAAT? Yeah. Me too. This is happening on all our Debian Lenny machines but not on at least one Squeeze we have.
/etc/passwddetail for postgres' shell? – jscott Apr 1 '11 at 15:43su - postgresset all parameters, as when user postgres login to the machine (including .bash files for the opening relation), butsu postgresdon't do this. It can deal with this behavior... – Jan Marek Jan 26 at 8:17