赞
踩
在floodlight主机处安装wireshark后,需要以root的身份运行wireshark,但是运行之后会先后弹出两个提示框(sudo wireshark):
1.Running as user “root” and group “root”. This could be dangerous.
2.Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:45: dofile has been disabled
为了避免出现这样的情况,我们可以通过以下操作来实现:
1.$sudo chgrp adm /usr/bin/dumpcap
2.$sudo chmod 750 /usr/bin/dumpcap
3.$sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap
接下来以user的身份运行即可,且不会有报错和提示信息($wireshark).
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。