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

Hi,

I am a new user to wireshark and I just recently compiled wireshark from sources. However, I am facing an issue.

Wireshark is not starting up with Lua capability (unable to view it under Tools->Lua) I did the following steps:

  1. downloaded lua to directory under /usr/local/<lua-5.1>
  2. built lua using "make linux test"
  3. Downloaded wireshark 2.2.7
  4. Did "configure --with-lua" //seems to be working fine.
  5. Did "make" //runs fine , no errors

I also viewed the "About" section when wireshark starts and I am able to see "built with Lua-5.1" But I am very puzzled and perplexed as to why it doesnt show up under "Tools -> Lua"

Also, on another machine, I did this as a non root user and I am able to see Tools->Lua, but the interfaces for packet capture do not show up (probably since this requires root permissions)

I would be grateful if someone could kindly help me out

regards TJ

asked 14 Jun '17, 09:54

tharamur's gravatar image

tharamur
6112
accept rate: 0%

edited 14 Jun '17, 10:22

grahamb's gravatar image

grahamb ♦
19.8k330206


By default Lua scripts will not be executed if Wireshark is running as the root user. The theory there is that running Wireshark's 2+ million lines of code as root is bad enough but running scripts would be even worse.

I would very strongly suggest you configure things so you don't have to run Wireshark as root. Gerald's blog post has an excellent description; you'll also find answers on this site on how to do it.

permanent link

answered 14 Jun '17, 13:29

JeffMorriss's gravatar image

JeffMorriss ♦
6.2k572
accept rate: 27%

Hi Jeff

Thanks a lot for your reply...I'm sorry I couldn't get back sooner, as I was temporarily assigned to another project.

Btw, I tried out the remedies suggested by you, but then the same issue persists When wireshark starts up as non root, none of the interfaces get displayed.

Is there any other way to resolve the issue ?

regards Tej

(05 Jul '17, 09:29) tharamur

Your answer has been converted to a comment as that's how this site works. Please read the FAQ for more information.

(05 Jul '17, 09:37) cmaynard ♦♦

Which method did you use to run Wireshark as non-root (there are a couple alternatives outlined in Gerald's blog post)?

(05 Jul '17, 10:28) JeffMorriss ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×431

question asked: 14 Jun '17, 09:54

question was seen: 836 times

last updated: 05 Jul '17, 10:28

p​o​w​e​r​e​d by O​S​Q​A