From 3f063193874914d2a4c3d0a52d079bd81e0f4831 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Mar 2008 10:27:20 -0800 Subject: fix non-root iptables usage in nat Bugfix: 2698 Align usage of sudoers /sbin/iptables in NAT to allow non-root user to run commands. --- templates-op/show/nat/rules/node.def | 2 +- templates-op/show/nat/statistics/node.def | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates-op/show') diff --git a/templates-op/show/nat/rules/node.def b/templates-op/show/nat/rules/node.def index 772e1b0..76e05eb 100644 --- a/templates-op/show/nat/rules/node.def +++ b/templates-op/show/nat/rules/node.def @@ -1,3 +1,3 @@ help: Show configured NAT rule set -run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-nat.pl \ +run: /opt/vyatta/sbin/vyatta-show-nat.pl \ ${vyatta_datadir}/xsl/show_nat_rules.xsl diff --git a/templates-op/show/nat/statistics/node.def b/templates-op/show/nat/statistics/node.def index b4fe23f..ae66e85 100644 --- a/templates-op/show/nat/statistics/node.def +++ b/templates-op/show/nat/statistics/node.def @@ -1,3 +1,3 @@ help: Show statistics for configured NAT rules -run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-nat.pl \ +run: /opt/vyatta/sbin/vyatta-show-nat.pl \ ${vyatta_datadir}/xsl/show_nat_statistics.xsl -- cgit v1.2.3