ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: [Wireshark-users] Disable wireshark root user warning

From: Mathieu Tarral <mathieu.tarral@xxxxxxxxxxxxxx>
Date: Mon, 25 Jun 2018 12:09:23 -0400
Hi,

I'm running into a small issue with tshark, because i'm using it as root inside a Docker container, to transform a PCAP into a JSON output:
tshark -r file.pcap -T json

However, because of the warning printed by tshark at the beginning of the file,
("Running as user "root" and group "root". This could be dangerous." and
"dofile has been disabled due to running Wireshark as superuser")
the JSON file is invalid.

Is there a way to disable these messages ?
refactoring my container to use a non-root user will be a lot of work.

Thanks !
​--
Mathieu Tarral
Sent with ProtonMail Secure Email.​