First you need to confirm that postgres is a member of the group admin. You can do that as below
Quote:
groups postgres | cut -d':' -f2
|
If so, then you seem to have a problem with the formatting of the sudo line for the group admins. The line that begins with '%admin'. It should appear as below
Quote:
%admin ALL=(ALL) NOPASSWD: ALL
|
If postgres is not a member of the group admin, you can add him as below
Quote:
usermod -G admin postgres
|