[pgpool-general: 4688] Re: Pgpool sudo for virtual IP vs run as root
lucasluengas at gmail.com
Wed May 18 04:21:19 JST 2016
I am using sudo. This is my configuration:
- File pgpool.conf:
ifconfig_path = '/usr/bin'
if_up_cmd = 'sudo ifconfig eth0:0 inet $_IP_$ netmask 255.255.255.0'
if_down_cmd = 'sudo ifconfig eth0:0 down'
arping_path = '/usr/bin'
arping_cmd = 'sudo arping -U $_IP_$ -w 1'
- File /etc/sudoers (edit with visudo command). At the end of file write
postgres ALL=NOPASSWD: /sbin/ifconfig,/usr/sbin/arping
I am using pgpool installed from pgpool yum repository.
On Mon, May 16, 2016 at 1:50 PM, Piotr Gbyliczek <
piotr.gbyliczek at reconnix.com> wrote:
> On Monday 16 May 2016 11:36:55 Avi Weinberg wrote:
> > Hi all,
> > I have permission issue with adding and removing the virtual IP. I added
> > user postgres to the sudoers list. I wanted to add sudo to the
> > or to if_up_cmd but any place I put the sudo caused the service not to
> > up. Where the sudo should be put? Are the only places that sudo is
> > are for the virtual IP and the arping? Should I start the service as
> > instead?
> I think documentation suggests setting suid on binaries if you not running
> pgpool as root (which is not recommended). If I remember correctly, just
> ifconfig and arping if I remember.
> pgpool-general mailing list
> pgpool-general at pgpool.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pgpool-general