aboutsummaryrefslogtreecommitdiffstats
path: root/community/wireshark/wireshark.pre-install
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-12-19 23:42:57 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2020-01-01 12:40:09 +0100
commit25292898fde6d5aa8791d9411b904c3a3b408c06 (patch)
treee4a9eb79544cbbd5688066637df9659dee22f1d5 /community/wireshark/wireshark.pre-install
parente0241ea300d8c1b0081793ccb4b2c5041ef9bb43 (diff)
community/wireshark: allow users in wireshark group to use dumpcap
Currently wireshark needs to be either run as root or users need to manually configure one of the mechanisms from the wireshark wiki [0]. Allowing users of a specific group to capture packets seems to be a sensible default for me. [0]: https://wiki.wireshark.org/CaptureSetup/CapturePrivileges#Limiting_capture_permission_to_only_one_group
Diffstat (limited to 'community/wireshark/wireshark.pre-install')
-rw-r--r--community/wireshark/wireshark.pre-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/community/wireshark/wireshark.pre-install b/community/wireshark/wireshark.pre-install
new file mode 100644
index 00000000000..e9022d09ccc
--- /dev/null
+++ b/community/wireshark/wireshark.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+addgroup -S wireshark 2>/dev/null
+exit 0