我已经在ubuntu 16.04机器上构建了wireshark-2.4.2。生成和安装是成功的,没有任何警告或错误。但是,在启动wireshark之后,我会遇到以下错误。
$ 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拒绝错误加载表‘自定义SIP头字段’:权限拒绝错误加载表'SIP授权用户‘:权限拒绝错误加载表'SNMP用户’:权限拒绝错误加载表'SNMP特定陷阱类型‘:权限拒绝错误加载表'SSL解密’:权限拒绝错误加载表'NM用户数据字段‘表:权限拒绝错误加载表’用户DLTs表‘:拒绝权限错误加载表'Bitstream表’:权限被拒绝<代码>D54错误加载表‘预配置的Keys':拒绝权限<代码>D55错误加载表“ZigBee GP安全密钥”:权限被拒绝的错误加载表‘显示筛选器宏’:权限被拒绝的错误加载表‘专家信息严重级别配置’:无法打开全局首选项文件“/usr/local/share/wireshark// preferences”:拒绝权限。无法打开全局禁用协议文件“/usr/local/share/wireshark/wireshark/ file _protos”:无法打开全局启用的协议文件“/usr/local/共享/wireshark/ enabled _”:无法打开全局启发式协议文件。无法打开全局启发式协议文件。分解文件"/usr/local/share/wireshark/heuristic_protos":权限被拒绝。无法打开捕获筛选文件“/usr/local/share/wireshark/cfilter”:权限被拒绝。无法打开全局筛选文件"/usr/local/share/wireshark/colorfilters":权限拒绝。有没有人知道出了什么问题。
发布于 2017-11-03 11:05:43
通过更改位于/usr/local/share/wireshark的wireshark文件的分配,可以解决问题。
作为根目录登录,
$ chmod -R 777 /usr/local/share/wireshark
现在,从非根用户,我可以运行wireshark没有任何错误弹出。:)
https://stackoverflow.com/questions/47093121
复制相似问题