Created
March 13, 2024 08:08
-
-
Save Pr1meSuspec7/47e0dc751ee918c43d02bb1f522d88d1 to your computer and use it in GitHub Desktop.
EVE-NG | PNETLAB | TCPDUMP | Enable no-root users to run packet capture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This will let anyone who belongs to the 'pcap' group | |
# execute 'tcpdump' | |
sudo groupadd pcap | |
sudo usermod -a -G pcap $USER | |
sudo chgrp pcap /usr/sbin/tcpdump | |
sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump | |
sudo ln -s /usr/sbin/tcpdump /usr/bin/tcpdump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment