By running wireshark in 14.04 I got this error What should I do to solve this?
Lua: Error during loading: [string "/usr/share/wireshark/init.lua"]:46: dofile has been disabled due to running Wireshark as superuser. See http://wiki.wireshark.org/CaptureSetup/CapturePrivileges for help in running Wireshark as an unprivileged user.
That is because (I presume) you are running wireshark as root
From the link you were given in the message:
so ...
don't forget to add the user to the wireshark group
and (!) logo-off and log-on again. Then run wireshark as a non-root user.
I found a simple fix for this.
usr/share/wireshark
.init.lua
with a text editor.disable_lua = false
todisable_lua = true
.That is because you didn't add user to wireshark group, So:
Say YES to the message box.This adds a wireshark group.Then add user to the group by typing
Then restart your machine and open wireshark.
Run
and it works good luck ;)
by @Thusitha Sumanadasa
I am using Mint (based on Ubuntu), in my case, it's the location of the output file caused the issue, when I change the output file to under
/tmp/
, then the issue is solved.e.g
tshark -i wlp7s0 -w /tmp/a.pcap
Run the following command to open
/usr/share/wireshark/init.lua
in a text editor:There you'll see a line similar to this:
Make it look like
Press Ctrl + X to save and exit.
Wireshark is ready to use!