The capture session could not be initiated on interface 'enp2s0' (You don't have permission to capture on that device).

Please check to make sure you have sufficient permissions.

On Debian and Debian derivatives such as Ubuntu, if you have installed Wireshark from a package, try running

    sudo dpkg-reconfigure wireshark-common

selecting "<Yes>" in response to the question

    Should non-superusers be able to capture packets?

adding yourself to the "wireshark" group by running

    sudo usermod -a -G wireshark {your username}

and then logging out and logging back in again.

解决办法:

suguihua@suguihua-OptiPlex-3080:~/下载$ sudo groupadd wireshark
[sudo] suguihua 的密码:
suguihua@suguihua-OptiPlex-3080:~/下载$ sudo chgrp wireshark /usr/bin/dumpcap
suguihua@suguihua-OptiPlex-3080:~/下载$ sudo chmod 4755 /usr/bin/dumpcap
suguihua@suguihua-OptiPlex-3080:~/下载$ sudo gpasswd -a suguihua wireshark
正在将用户“suguihua”加入到“wireshark”组中

之后就可以愉快的抓包了

最新文章

  1. Leetcode: Optimal Account Balancing
  2. Informatica相同环境与不同环境的导入导出( Repository Name,Integration Service Name,Folder Name是否相同):
  3. QQ屠龙转世-挖矿
  4. jquery检测浏览器版本
  5. java变量和方法的覆盖和隐藏(翻译自Java Tutorials)
  6. ssl配置
  7. perl 获取虚拟机信息
  8. 【HDOJ】2888 Check Corners
  9. QT-Creator C/C++ 打地鼠小游戏
  10. ssm框架理解
  11. 关于 String 自我理解
  12. shim &amp; polyfill
  13. 接口Set
  14. Pandas聚合
  15. [osg][osgEarth][原]基于OE自定义自由飞行漫游器(第二版)
  16. MySQL 之 MyTop实时监控MySQL
  17. 10.18号java课后作业代码
  18. Java单元测试框架 JUnit
  19. Jquery中&quot;$(document).ready(function(){ })&quot;函数的使用详解
  20. java小技巧-生成重复的字符

热门文章

  1. C#神器&quot;BlockingCollection&quot;类实现C#神仙操作
  2. Postgresql 锁等待检测及处理
  3. webgl 系列 —— 绘制一个点(版本2、版本3、版本4、版本5)
  4. 爆肝200+小时,总结出的 Creator 3.x 入门修炼指南!全免费
  5. RuntimeError: CUDA error: device-side assert triggered
  6. 1223. 掷骰子模拟 (Hard)
  7. 03-python基本数据类型详解
  8. Ubuntu磁盘查看分区和挂载
  9. kafka数据顺序一致
  10. JVM(一) --- 什么是JVM