diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 18:53:56 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 18:53:56 -0800 |
commit | 4dbba52a5b7e97d55ea7c4f957f594204350b9b2 (patch) | |
tree | 43bf92447f731628b831902f8b2253022b75a11a /templates/show/interfaces | |
parent | 478334deb755f9b31fccffdde92971516863dbff (diff) | |
download | vyatta-op-4dbba52a5b7e97d55ea7c4f957f594204350b9b2.tar.gz vyatta-op-4dbba52a5b7e97d55ea7c4f957f594204350b9b2.zip |
* restrict "users" level sudo permissions to the "sudo-users" directory.
* add wrappers for show commands requiring sudo and put them in "sudo-users"
directory.
Diffstat (limited to 'templates/show/interfaces')
-rw-r--r-- | templates/show/interfaces/ethernet/node.tag/physical/node.def | 2 | ||||
-rw-r--r-- | templates/show/interfaces/ethernet/node.tag/vif/node.tag/physical/node.def | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/show/interfaces/ethernet/node.tag/physical/node.def b/templates/show/interfaces/ethernet/node.tag/physical/node.def index 0d4dcf1..3e4e2bc 100644 --- a/templates/show/interfaces/ethernet/node.tag/physical/node.def +++ b/templates/show/interfaces/ethernet/node.tag/physical/node.def @@ -1,3 +1,3 @@ help: Show physical device information of given ethernet interface allowed: "" -run: sudo ethtool $4 +run: sudo ${vyatta_bindir}/sudo-users/vyatta-ethtool-wrapper $4 diff --git a/templates/show/interfaces/ethernet/node.tag/vif/node.tag/physical/node.def b/templates/show/interfaces/ethernet/node.tag/vif/node.tag/physical/node.def index 96cd2a5..d2e8593 100644 --- a/templates/show/interfaces/ethernet/node.tag/vif/node.tag/physical/node.def +++ b/templates/show/interfaces/ethernet/node.tag/vif/node.tag/physical/node.def @@ -1,2 +1,2 @@ help: Show given virtual network interface pseudo-physical information -run: sudo ethtool $4.$6 +run: sudo ${vyatta_bindir}/sudo-users/vyatta-ethtool-wrapper $4.$6 |