wireshark 没权限抓网口的包
Tofloor
poster avatar
155******23
deepin
2017-05-18 18:53
Author
如何添加权限
Reply Favorite View the author
All Replies
avatar
155******23
deepin
2017-05-18 18:54
#1
如何添加权限
Reply View the author
avatar
南浦月
deepin
2017-05-18 19:17
#2
  1. sudo gpasswd -a $USER wireshark
Copy the Code

注销,重新登录。
Reply View the author
avatar
liujianfeng
deepin
2017-05-18 19:22
#3
Reply View the author
avatar
155******23
deepin
2017-05-18 19:22
#4
https://bbs.deepin.org/post/139626
注销,重新登录。

提示不在
gpasswd:wireshark 组不存在于 /etc/group 中
Reply View the author
avatar
南浦月
deepin
2017-05-18 19:26
#5
https://bbs.deepin.org/post/139626
https://anonscm.debian.org/viewvc/collab-maint/ext-maint/wireshark/trunk/debian/README.Debian?view=m ...
  1. sudo dpkg-reconfigure wireshark-common
Copy the Code
Reply View the author
avatar
Feng Yu
deepin
2017-05-18 19:34
#6
这个在社区已经有人问过了,参考解决方案: https://ask.wireshark.org/questi ... ux-for-nonroot-user

wireshark抓包需要提权,所以需要做一些配置操作
Reply View the author
avatar
155******23
deepin
2017-05-18 19:35
#7

添加好root组之后还是提示权限不够
Reply View the author
avatar
155******23
deepin
2017-05-18 19:36
#8
-rwxr-xr-- 1 root wireshark 98208 5月   5 18:04 /usr/bin/dumpcap
Reply View the author
avatar
Feelup
deepin
2017-05-18 20:40
#9

解决方法如下:
1.添加wireshark用户组

sudo groupadd wireshark

2.将dumpcap更改为wireshark用户组

sudo chgrp wireshark /usr/bin/dumpcap

3.让wireshark用户组有root权限使用dumpcap

sudo chmod 4755 /usr/bin/dumpcap

4.将需要使用的用户名加入wireshark用户组,我的用户名是craftor

sudo gpasswd -a 当前的用户名 wireshark
Reply View the author
Comments
jim-pc
2018-02-27 02:32
完美解决,非常感谢
avatar
155******23
deepin
2017-05-18 21:17
#10
https://bbs.deepin.org/post/139626
解决方法如下:
1.添加wireshark用户组

已经可以 非常感谢
Reply View the author
avatar
36******12@qq.com
deepin
2017-05-19 00:23
#11
https://bbs.deepin.org/post/139626
解决方法如下:
1.添加wireshark用户组

正解
Reply View the author