Back to Browse

Stop Typing Sudo! Use tcpdump Without Root Permissions for Network Analysis

13 views
May 6, 2026
0:56

Stop entering your password every time you need to analyze traffic. In this quick Linux tutorial, I’ll show you how to configure tcpdump with the correct capabilities so you can run captures as a standard user without sudo. This is a essential optimization for network engineers and system administrators who use Linux daily for network troubleshooting and packet analysis. Commands Used in This Video: Update system: sudo apt update Install tcpdump: sudo apt install tcpdump Set capabilities: sudo setcap cap_net_raw,cap_net_admin=eip $(which tcpdump) Why This Works: We are using setcap to grant the specific network raw and admin capabilities to the tcpdump binary. This follows the principle of least privilege while providing the convenience of password-less execution. NEXT: tcpdump commands: https://youtu.be/ipcZU_nnI1I More Networking Tutorials: Check out my latest packet analysis demo: SSH Attacks in Real Time | tcpdump Packet Analysis https://studio.youtube.com/video/tfZjs7sR93U If you find these quick technical fixes helpful, subscribe for more Networking, TCPDump, and Linux niche tutorials! Video Chapters 0:00 Stop Using Sudo for TCPDump 0:05 Update and Install TCPDump on Linux 0:19 The Problem with Sudo Requirement 0:30 Fix: TCPDump Without Sudo Command 0:48 Verifying TCPDump Non-Root Access 0:51 Join the Technical Community #tcpdump #LinuxTutorial #NetworkAnalysis #SysAdmin #LinuxNetworking #NetworkingTips

Download

0 formats

No download links available.

Stop Typing Sudo! Use tcpdump Without Root Permissions for Network Analysis | NatokHD