Austen,
> sudo -u postgres /bin/bash> [sudo] password for test:> Sorry, user test is not allowed to execute '/bin/bash' as postgres
Are you able to execute:sudo -u postgres -s
--G.