I'm trying to execute
sudo ufw allow 5432/tcp
Being a postgres user. But then sudo asks for a password of a postgres user
[sudo] password for postgres:
Already tried to set NOPASSWD: ALL
in sudoers, but it doesn't help.
Tried to change postgres user password using psql, but it doesn't help too.
I've changed OS user postgres password
sudo bash
And then
passwd postgres