当前位置:   article > 正文

以root身份运行wireshark报错解决_running as user "root" and group "root". this coul

running as user "root" and group "root". this could be dangerous.

在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).


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/326685
推荐阅读
相关标签
  

闽ICP备14008679号