【转】[fix] Wireshark error: There are no interfaces on which a capture can be done. on Mac OS X

本文介绍了解决在MacOSX上使用Wireshark时遇到的无法捕获网络接口的问题。通过调整设备文件的所有权和权限设置,使得用户能够正常进行网络数据包捕获。

I got the following error message when trying to open a network interface for capture using Wireshark on Mac OS X (Wireshark 1.5.1 Intel 64 beta and 1.4.6 Intel 64 show this behaviour):

There are no interfaces on which a capture can be done.

To solve the problem open a Terminal and enter

sudo chown $USER:admin /dev/bp*

This command fixes the ownership of your Berkeley packet filter devices /dev/bpf0 etc. which makes them readable and writable.

此外,还可以通过修改/dev/bp*文件的other权限为可读:

 sudo chmod o+r /dev/bpf*

 

 

If you are using Linux instead of Mac OS X

When using a Linux distribution (such as Ubuntu, Debian, Fedora, Arch etc.) you can usually solve this problem by running Wireshark as root user (using sudo wireshark). Alternatively set the permissions of your network interfaces to allow access by regular users).

转载于:https://www.cnblogs.com/vsignsoft/p/4647482.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值