Running as user "root" and group "root". This could be dangerous. tshark: Lua: Error during loading:

在使用tshark抓包的时候突然遇到以下错误,也就是说wireshark默认是不允许使用root使用的,这怎么办呢,肯定是不合理的啊,就像vlc一样不允许root直接使用,奈何我用kali,也不想创建多余的用户,所以在这里记录一下,修改的方法。

问题提示:“Running as user "root" and group "root". This could be dangerous.
tshark: 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.
tshark: Invalid -o flag "out.cap"

解决方法:编辑/usr/share/wireshark/init.lua文件,修改dofile(DATA_DIR.."console.lua")为--dofile(DATA_DIR.."console.lua"),也就是直接注掉。


你可能感兴趣的:(kali)