Hi i run wireshark at root and see this error, and change disable_lua = false to true but after this wireshark crashed ... please help me... thanks 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. asked 23 Feb '16, 08:41 TeVeN edited 23 Feb '16, 10:16 JeffMorriss ♦ |
2 Answers:
The error message from Lua is not a crash (or is not the cause of a crash). It's just telling you that certain parts of Lua aren't going to work correctly because you're running Wireshark as root. Really, don't do that (that is, don't run Wireshark as root). Wireshark has over 2 million lines of source code which are analyzing (potentially malicious) network traffic. See the URL quoted by the error message for instructions on setting up Wireshark so it will be able to run Wireshark as a non-root user while still being able to capture. It will also make Lua plugins work correctly. If Wireshark really is crashing then that's almost certainly a separate issue. Does it crash if you run Wireshark as a normal user? Does it crash if you leave Lua fully disabled? answered 23 Feb '16, 11:41 JeffMorriss ♦ |
to fix this you want to remove your sudo privileges from the account you are working on. Make sure you don't need sudo to access any of the files that your script will be running on. answered 23 Feb '16, 10:01 testname0110 |
Actually I was wrong: Wireshark does (did) crash when disable_lua was true. This was recently fixed and will be fixed in 2.0.3.