Lua error during loading wireshark

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 Wire...

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.

asked Apr 24, 2014 at 19:33

Mohammad Reza Rezwani's user avatar

That is because (I presume) you are running wireshark as root

From the link you were given in the message:

You need to run Wireshark or TShark on an account with sufficient privileges to capture, or need to give the account on which you’re running Wireshark or TShark sufficient privileges to capture. The way this is done differs from operating system to operating system.

To be secure (at least in a way), it is recommended that even an administrator should always run in an account with (limited) user privileges, and only start processes that really need the administrator privileges. The Security page provides explanations why this is a good idea.

Setting network privileges for dumpcap

  1. Ensure your linux kernel and filesystem supports File Capabilities and also you have installed necessary tools.

  2. «setcap ‘CAP_NET_RAW+eip CAP_NET_ADMIN+eip’ /usr/bin/dumpcap»

  3. Start Wireshark as non-root and ensure you see the list of interfaces and can do live capture.

so …

sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

don’t forget to add the user to the wireshark group

sudo usermod -aG wireshark $USER

and (!) logo-off and log-on again.
Then run wireshark as a non-root user.

answered Apr 24, 2014 at 19:39

Panther's user avatar

4

I found a simple fix for this.

  1. Go to usr/share/wireshark.
  2. Open init.lua with a text editor.
  3. Change disable_lua = false to disable_lua = true.

pomsky's user avatar

pomsky

65.7k20 gold badges228 silver badges241 bronze badges

answered Apr 19, 2017 at 14:09

zack's user avatar

0

That is because you didn’t add user to wireshark group, So:

sudo dpkg-reconfigure wireshark-common

Say YES to the message box.This adds a wireshark group.Then add user to the group by typing

sudo adduser $USER wireshark

Then restart your machine and open wireshark.

Run

wireshark

and it works good luck ;)

by @Thusitha Sumanadasa

Zanna's user avatar

Zanna

68.3k55 gold badges210 silver badges320 bronze badges

answered Oct 23, 2017 at 17:16

Mhirsi Hamza's user avatar

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

answered Oct 23, 2018 at 7:41

Eric's user avatar

EricEric

4527 silver badges17 bronze badges

Run the following command to open /usr/share/wireshark/init.lua in a text editor:

nano /usr/share/wireshark/init.lua

There you’ll see a line similar to this:

 enable_lua = true     

Make it look like

 enable_lua = false

Press Ctrl + X to save and exit.

Wireshark is ready to use!

AlwaysAvailable's user avatar

answered Jan 19, 2022 at 16:12

user1563292's user avatar

0

  • Печать

Страницы: [1] 2 3  Все   Вниз

Тема: Не работает Wireshark на Ubuntu 16.04  (Прочитано 4915 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
nicname

Нужна помощь в настройке программы. Установил нормально программу но при запуске не могу сканировать сеть, так как не находит устройства, к тому же выскакивают разного рода ошибки.
ПРИМЕР:первая при запуске программы.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.вторая Invalid argument to option: —time-stamp-type=������’��A�@��1.
ПРОШУ ПОМОЩИ!!!


Оффлайн
Morisson

uname -a?
Запускал от рута?


Оффлайн
nicname

запускал только через команду sudo


Пользователь добавил сообщение 23 Сентября 2017, 21:00:25:


делал так sudo wireshark
Linux a***x 4.10.0-35-generic #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:25 UTC 2017 i686 i686 i686 GNU/Linux

« Последнее редактирование: 23 Сентября 2017, 21:00:25 от nicname »


Оффлайн
snowin


Оффлайн
nicname

а как правильно её зпускать. можно подробней описание.


Оффлайн
snowin

nicname, если из терминала — wireshark


Оффлайн
nicname

запускал и так всеравно при начале сканирования пишет ошибку Invalid argument to option: —time-stamp-type=�î�e


Оффлайн
snowin

nicname, удали полсностью, вместе с конфигами и установи заново


Оффлайн
nicname

при запуске через терминал пишет так
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action «» under id 193
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action «» under id 194


Оффлайн
snowin


Оффлайн
nicname

adm cdrom sudo dip plugdev lpadmin sambashare groups: невозможно определить имя группы для ID 129
129


Оффлайн
snowin

nicname,
попробуй выполнить

sudo dpkg-recobfigure wireshark-common

sudo adduser $USER wireshark


Оффлайн
nicname

эту просто так ввести sudo adduser $USER wireshark или adduser $имя пользователя?


Оффлайн
snowin

эту просто так ввести sudo adduser $USER wireshark или adduser $имя пользователя?

а подумать


Оффлайн
nicname

 

;D понял уже делаю


Пользователь добавил сообщение 23 Сентября 2017, 21:32:51:


после выполнения посленей команды выдал сообщение
adduser: Группа «wireshark» уже существует.

« Последнее редактирование: 23 Сентября 2017, 21:32:51 от nicname »


  • Печать

Страницы: [1] 2 3  Все   Вверх

I’m trying to setup Wireshark so that I can use the LuaInterface to use some of the classes in the .NET framework. I’m able to get it working running through the Lua command line, but when I try to require "CLRPackage" in the init.lua startup script, it doesnt appear to find the required files. I get the following exception when starting Wireshark:

Lua: Error during loading:
 C:Program FilesWiresharkluascript.lua:25: module 'CLRPackage' not found:
    no field package.preload['CLRPackage']
    no file '.CLRPackage.lua'
    no file 'C:Program FilesWiresharkluaCLRPackage.lua'
    no file 'C:Program FilesWiresharkluaCLRPackageinit.lua'
    no file 'C:Program FilesWiresharkCLRPackage.lua'
    no file 'C:Program FilesWiresharkCLRPackageinit.lua'
    no file 'C:Program FilesLua5.1luaCLRPackage.luac'
    no file '.CLRPackage.dll'
    no file '.CLRPackage51.dll'
    no file 'C:Program FilesWiresharkCLRPackage.dll'
    no file 'C:Program FilesWiresharkCLRPackage51.dll'
    no file 'C:Program FilesWiresharkclibsCLRPackage.dll'
    no file 'C:Program FilesWiresharkclibsCLRPackage51.dll'
    no file 'C:Program FilesWiresharkloadall.dll'
    no file 'C:Program FilesWiresharkclibsloadall.dll'

I’ve tried setting the package.path and package.cpath to match what is set at the command line, but that doesnt seem to help.

package.path = ";.\?.lua;C:\Program Files\Lua\5.1\lua\?.lua;C:\Program Files\Lua\5.1\lua\?\init.lua;C:\Program Files\Lua\5.1\?.lua;C:\Program Files\Lua\5.1\?\init.lua;C:\Program Files\Lua\5.1\lua\?.luac;C:\Program Files\Lua\5.1\lua\?lua"

package.cpath = package.cpath .. ".\?.dll;.\?51.dll;C:\Program Files\Lua\5.1\?.dll;C:\Program Files\Lua\5.1\?51.dll;C:\Program Files\Lua\5.1\clibs\?.dll;C:\Program Files\Lua\5.1\clibs\?51.dll;C:\Program Files\Lua\5.1\loadall.dll;C:\Program Files\Lua\5.1\clibs\loadall.dll;C:\Program Files\Lua\5.1\clibs\luanet.dll"

When I do this, I get the following error:

Lua: Error during loading:
   error loading module 'luanet' from file 
   'C:Program FilesLua5.1clibsluanet.dll':
   The spcecified module could not be found.

This is a strange error since the file definitely exists.

I’ve installed the Lua package for windows in C:Program FilesLua5.1.

Has anyone been able to get this working? Any help would be appreciated.

I’m using Wireshark 1.4.4 with Lua 5.1.4

zodiak


  • #1

При запуске wireshark выскакивает окно —

Lua: Error during loading:
[string «/usr/share/wireshark/init.lua»]:44: dofile has been disabled due to running Wireshark as superuser. See

Ссылка скрыта от гостей

for help in running Wireshark as an unprivileged user.

после смены прав суперпользователя выскакивает — нет доступа (
как быть ? помогите новичку )

Vertigo

Vertigo

Lex mea est Vulgate Linux

Gold Team


  • #2

При запуске wireshark выскакивает окно —

Lua: Error during loading:
[string «/usr/share/wireshark/init.lua»]:44: dofile has been disabled due to running Wireshark as superuser. See

Ссылка скрыта от гостей

for help in running Wireshark as an unprivileged user.

после смены прав суперпользователя выскакивает — нет доступа (
как быть ? помогите новичку )

Ну есть ведь ответ с решением в этой же ветке в статье «Не запускается Wireshark» в самом последнем комментарии.

zodiak


  • #3

Извиняюсь ) не посмотрел полностью ветку. решение именно в последнем комментарии ) спасибо.

  • #4

Я так и не нашёл в мануале по ссылке решение проблемы.
Может быть, кто-то столкнётся , вот решение ))
В любом текстовом редакторе необходимо открыть файл

Код:

nano /usr/share/wireshark/init.lua

В строчке

заменить

SearcherSlava


  • #6

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

Ссылка скрыта от гостей

wireshark.png

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Lu decomposition error arima
  • Lsadrv touch sensor error как исправить
  • Ls reading directory input output error
  • Ls cannot open directory input output error
  • Ls cannot access input output error

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии