summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-02 13:58:47 -0400
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-02 13:58:47 -0400
commit244c071706ed5d6f391c9ddaaa467c561eb0f756 (patch)
tree9c67924a08e171453db222c8ebe9a62bcb4d66f2
parent38e9c8072716ce70fb6210b9326819e5c49e992f (diff)
downloadvyatta-op-244c071706ed5d6f391c9ddaaa467c561eb0f756.tar.gz
vyatta-op-244c071706ed5d6f391c9ddaaa467c561eb0f756.zip
tshark no longer needs to be run as root
Since user as net_admin capability it can be used to invoke tshark.
-rwxr-xr-xscripts/vyatta-tshark-interface-port.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-tshark-interface-port.pl b/scripts/vyatta-tshark-interface-port.pl
index 47088f9..b82441e 100755
--- a/scripts/vyatta-tshark-interface-port.pl
+++ b/scripts/vyatta-tshark-interface-port.pl
@@ -63,9 +63,9 @@ check_if_interface_is_tsharkable($intf);
if ($#ARGV > 0){
my $filter = $ARGV[1];
print "Capturing traffic on $intf $filter ...\n";
- exec "sudo /usr/bin/tshark -n -i $intf $filter";
+ exec "/usr/bin/tshark -n -i $intf $filter";
} else {
print "Capturing traffic on $intf ...\n";
- exec "sudo /usr/bin/tshark -n -i $intf";
+ exec "/usr/bin/tshark -n -i $intf";
}