<div dir="ltr"><div>Hello.<br><br>I am using sudo. This is my configuration:<br><br>- File pgpool.conf:<br><br>ifconfig_path = &#39;/usr/bin&#39;<br>if_up_cmd = &#39;sudo ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0&#39;<br>if_down_cmd = &#39;sudo ifconfig eth0:0 down&#39;<br>arping_path = &#39;/usr/bin&#39;<br>arping_cmd = &#39;sudo arping -U $_IP_$ -w 1&#39;<br><br><br>- File /etc/sudoers (edit with visudo command). At the end of file write this:<br><br>Defaults:postgres !requiretty<br>postgres ALL=NOPASSWD: /sbin/ifconfig,/usr/sbin/arping<br><br><br>I am using pgpool installed from pgpool yum repository.<br><br><br></div>Regards.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 16, 2016 at 1:50 PM, Piotr Gbyliczek <span dir="ltr">&lt;<a href="mailto:piotr.gbyliczek@reconnix.com" target="_blank">piotr.gbyliczek@reconnix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Monday 16 May 2016 11:36:55 Avi Weinberg wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I have permission issue with adding and removing the virtual IP.  I added<br>
&gt; user postgres to the sudoers list.  I wanted to add sudo to the if_cmd_path<br>
&gt; or to if_up_cmd but any place I put the sudo caused the service not to come<br>
&gt; up.  Where the sudo should be put?  Are the only places that sudo is needed<br>
&gt; are for the virtual IP and the arping?  Should I start the service as root<br>
&gt; instead?<br>
<br>
<br>
I think documentation suggests setting suid on binaries if you not running<br>
pgpool as root (which is not recommended). If I remember correctly, just<br>
ifconfig and arping if I remember.<br>
<br>
Regards,<br>
Piotr<br>
_______________________________________________<br>
pgpool-general mailing list<br>
<a href="mailto:pgpool-general@pgpool.net">pgpool-general@pgpool.net</a><br>
<a href="http://www.pgpool.net/mailman/listinfo/pgpool-general" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-general</a><br>
</blockquote></div><br></div>