This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Lua Error - dofile has been disabled

0

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's gravatar image

TeVeN
6112
accept rate: 0%

edited 23 Feb '16, 10:16

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572


2 Answers:

0

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's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

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.

(28 Feb '16, 14:32) JeffMorriss ♦

-1

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's gravatar image

testname0110
15559
accept rate: 75%