Linux, Sniffing, Wireshark

Run Wireshark as a user rather than root – Ubuntu

Messages from wireshark:
Running as user “root” and group “root”. This could be dangerous.
Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:45: dofile has been disabled

To fix them and run wireshark as normal user and not as root which is very dangerous do the following:

sudo chgrp adm /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap

try to run wireshark again but without root privileges.