linux环境下安装wireshark

start to setup

apt install wireshark

open wireshark, error follows

linux环境下安装wireshark_第1张图片

solve the problem

vim /etc/wireshark/init.lua

653 dofile(DATA_DIR.."console.lua")
654 --dofile(DATA_DIR.."dtd_gen.lua")

note line.635 to
653 --dofile(DATA_DIR.."console.lua")

『why to do this, I don't know now.』

normal user couldn’t run /usr/bin/dumpcap in child process

enter root
1.groupadd wireshark
2.chgrp wireshark /usr/bin/dumpcap
3.chmod 4755 /usr/bin/dumpcap

ps. Wireshark introduce

https://wiki.wireshark.org/CaptureSetup/CapturePrivileges
这里写图片描述

(全文完)

你可能感兴趣的:(操作系統)