On Sep 6, 2016, at 6:18 AM, RafaĆ Radecki radecki.rafal@gmail.com wrote:
# sudo -H -E -u postgres /bin/bash -c /usr/bin/python2.7
Works for me. *shrug*
Is your postgres user a service account or something else strange about it? Does 'passwd --status postgres' hint at anything?