1 2 3 4 5 6 7 8 9 | # head /etc/sudoers.d/postgres postgres ALL=(ALL) NOPASSWD: /usr/bin/systemctl start postgresql postgres ALL=(ALL) NOPASSWD: /usr/bin/systemctl stop postgresql postgres ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart postgresql OR # head /etc/sudoers.d/postgres postgres ALL=(ALL) NOPASSWD: /usr/bin/systemctl start postgresql, /usr/bin/systemctl stop postgresql, /usr/bin/systemctl restart postgresql |