广告

本站里的文章大部分经过自行整理与测试

2017年9月29日星期五

WireShark : dofile has been disabled due to..

Lua: Error during loading:
[string "/usr/share/wireshark/init.lua"]:44: dofile has been disabled due to 
running Wireshark as superuser. See https://wiki.wireshark.org/
CaptureSetup/CapturePrivileges for help in running Wireshark as an 
unprivileged user.

解决方法 (给权限于普通用户)

$ su

$ chgrp <UID> /usr/bin/dumpcap
$ chown <UID> /usr/bin/dumpcap
$ chmod u+s /usr/bin/dumpcap

另一个问题

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

解决方法

$ setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

没有评论:

发表评论