Got permission denied when switching user from root to postgres. No issue switching from root to ubuntu.
root@node-01:~# su - postgres
su: Permission denied
(Ignored)
postgres@node-01:~$ logout
root@node-01:~# su - ubuntu
ubuntu@nodeg-01:~$
Here is the /etc/passwd and /etc/group entries:
postgres:x:998:998::/home/postgres:/bin/bash
postgres:x:998:
-
)?