Ubuntu Pastebin

Paste from mikesee at Fri, 21 Jul 2017 16:43:28 +0000

Download as text
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
Download as text