当前位置:首页 > 芯闻号 > 充电吧
[导读] Setting network privileges for dumpcap 1. Ensure your linux kernel and filesystem supports File C

Setting network privileges for dumpcap

1. Ensure your linux kernel and filesystem supports File Capabilities and also you have installed necessary tools.

2. "setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap"

3. Start Wireshark as non-root and ensure you see the list of interfaces and can do live capture.


Limiting capture permission to only one group

1. Create user "wireshark" in group "wireshark".

2. "chgrp wireshark /usr/bin/dumpcap"

3. chmod 754 /usr/bin/dumpcap

4. "setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap"

5. Ensure Wireshak works only from root and from a user in the "wireshark" group


注意, 如果是自己通过源代码编译安装的wireshark一般默认路径是安装在/usr/local/bin/dumpcap, 所以需要指定正确的路径。

其余系统可以参考下面的链接http://wiki.wireshark.org/CaptureSetup/CapturePrivileges

这个链接是在第一次使用root运行wireshark抓包显示的, 我想大部分人应该不会去注意提示信息吧。



本站声明: 本文章由作者或相关机构授权发布,目的在于传递更多信息,并不代表本站赞同其观点,本站亦不保证或承诺内容真实性等。需要转载请联系该专栏作者,如若文章内容侵犯您的权益,请及时联系本站删除( 邮箱:macysun@21ic.com )。
换一批
延伸阅读
关闭