wireshark在开始时显示错误对话

时间:2017-11-03 10:08:33

标签: lua ubuntu-16.04 wireshark

我在ubuntu 16.04机器上构建了wireshark-2.4.2。构建和安装成功,没有任何警告或错误。但是在启动wireshark之​​后,我发现了以下错误。

  • 使用root特权,

    $ sudo wireshark

    我在wireshark窗口上收到以下错误消息。

    Lua: Error during loading: [string "/usr/local/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.

  • 作为普通用户

    $ wireshark

    比我得到以下错误

    You don't have permission to read the file "init.lua".

    Error loading table 'SMI Paths': Permission denied

    Error loading table 'SMI Modules': Permission denied

    Error loading table 'GeoIP Database Paths': Permission denied

    Error loading table 'OID Tables': Permission denied

    Error loading table 'Custom BootP/DHCP Options (Excl. suboptions)': Permission denied

    Error loading table 'Force Decode by Channel': Permission denied

    Error loading table 'Decryption Table': Permission denied

    Error loading table 'Node bodytypes': Permission denied

    Error loading table 'DMP Security Classifications': Permission denied

    Error loading table 'DPS Security Mode Templates': Permission denied

    Error loading table 'DPS Session Keys': Permission denied

    Error loading table 'DPS Identity Secrets': Permission denied

    Error loading table 'DTLS RSA Keylist': Permission denied

    Error loading table 'Device-Specific Profiles': Permission denied

    Error loading table 'NodeID-Specific Profiles': Permission denied

    Error loading table 'ESS Category Attributes': Permission denied

    Error loading table 'Endpoint and Channel Configuration': Permission denied

    Error loading table 'Custom HTTP Header Fields': Permission denied

    Error loading table 'WEP and WPA Decryption Keys': Permission denied

    Error loading table 'Static Addresses': Permission denied

    Error loading table 'Keys': Permission denied

    Error loading table 'Custom IMF headers': Permission denied

    Error loading table 'ESP SAs': Permission denied

    Error loading table 'IKEv1 Decryption Table': Permission denied

    Error loading table 'IKEv2 Decryption Table': Permission denied

    Error loading table 'K12 Protocols': Permission denied

    Error loading table 'LBMPDM-TCP tag definitions': Permission denied

    Error loading table 'LBMR tag definitions': Permission denied

    Error loading table 'LBT-RM tag definitions': Permission denied

    Error loading table 'LBT-RU tag definitions': Permission denied

    Error loading table 'LBT-TCP tag definitions': Permission denied

    Error loading table 'Custom LDAP AttributeValue types': Permission denied

    Error loading table 'Static LCID -> drb Table': Permission denied

    Error loading table 'PDCP UE security keys': Permission denied

    Error loading table 'PRES Users Context List': Permission denied

    Error loading table 'Kind-ID Table': Permission denied

    Error loading table 'SCCP Users Table': Permission denied

    Error loading table 'Chunk types for the statistics dialog': Permission拒绝了

    Error loading table 'Custom SIP Header Fields': Permission denied

    Error loading table 'SIP authorization users': Permission denied

    Error loading table 'SNMP Users': Permission denied

    Error loading table 'SNMP Enterprise Specific Trap Types': Permission denied

    Error loading table 'SSL Decrypt': Permission denied

    Error loading table 'NM User Data Fields Table': Permission denied

    Error loading table 'User DLTs Table': Permission denied

    Error loading table 'Bitstream Channel Table': Permission denied

    Error loading table 'Pre-configured Keys': Permission denied

    Error loading table 'ZigBee GP Security Keys': Permission denied

    Error loading table 'Display Filter Macros': Permission denied

    Error loading table 'Expert Info Severity Level Configuration': Permission denied

    Can't open global preferences file "/usr/local/share/wireshark/preferences": Permission denied.

    Could not open global disabled protocols file "/usr/local/share/wireshark/disabled_protos": Permission denied.

    Could not open global enabled protocols file "/usr/local/share/wireshark/enabled_protos": Permission denied.

    Could not open global heuristic dissectors file "/usr/local/share/wireshark/heuristic_protos": Permission denied.

    Could not open your capture filter file "/usr/local/share/wireshark/cfilters": Permission denied.

    Could not open global filter file "/usr/local/share/wireshark/colorfilters": Permission denied.

我尝试过以下帖子但没有成功 [1] https://askubuntu.com/questions/454734/running-wireshark-lua-error-during-loading [2] https://osqa-ask.wireshark.org/questions/7976/wireshark-setup-linux-for-nonroot-user [3] https://wiki.wireshark.org/CaptureSetup/CapturePrivileges [4] https://ubuntuforums.org/archive/index.php/t-2048826.html [5] https://osqa-ask.wireshark.org/questions/42982/wireshark-1996-for-mac-osx-10103-can-t-open-preferences-file

有没有人知道出了什么问题。

1 个答案:

答案 0 :(得分:0)

通过更改位于/ usr / local / share / wireshark的wireshark文件的分配来解决问题。

以root用户身份登录

$ chmod -R 777 /usr/local/share/wireshark

现在,从非root用户,我可以运行wireshark而不会弹出任何错误。 :)