When I wanted to work with the Wireshark program that is ready for quality, I encountered an error like the following on my screen. Let’s solve this problem together.
![Wireshark init.lua error](https://www.systemconf.com/wp-content/uploads/2020/05/img_5eae2a855c95a.png)
It is a programming language of Lua. The programming language “Lua” is used in Wireshark. Every time Wireshark runs, it is called from the “/usr/share/wireshark/init.lua” directory from its installed location. If you think that the source of this error is from a warning in this file, you can see the error message and the checks shown when we enter and look into this file.
If you are a root user in Kali, Wireshark Lua functions stated that it is harmful as a comment in this code. There are two ways to solve this problem. The first would be to cancel the “Wireshark lua” support inside the file. For this, the command “disable_lua = false” is changed from “disable_lua = true”. But Lua will have an unsupported Wireshark.
![Wireshark Lua error and its solution](https://www.systemconf.com/wp-content/uploads/2020/05/img_5eaed45932898.png)
The simplest way would be to create a non-superuser user and run Wireshark with that user. We have created a normal “user” named “omer” below and when I run the directory “/usr/share/wireshark/init.lua” from the location where Wireshark is installed, you will see the command “disable_lua = false” as “disable_lua = true”.
![/usr/share/wireshark/init.lua](https://www.systemconf.com/wp-content/uploads/2020/05/img_5eae2e99d0439.png)
When we run Wireshark in kali with a new “omer” user, you will see it work like below.
![Wireshark in Kali](https://www.systemconf.com/wp-content/uploads/2020/05/img_5eaed803e2668.png)
![Welcome to Wireshark](https://www.systemconf.com/wp-content/uploads/2020/05/img_5eaed7179de5f.png)