Wireshark reinstallation to allow capture for non-root users?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bluefiresword
Level 1
Level 1
Posts: 1
Joined: Tue Aug 14, 2018 10:56 pm

Wireshark reinstallation to allow capture for non-root users?

Post by bluefiresword »

Hi,
I installed Wireshark from Software Manager. It asked me for an option that read something like "Do you want to allow capture for non-root users" (I don't remember the exact wordings). I unchecked and continued. Installation finished successfully. But then I changed my mind. I uninstalled and re-installed Wireshark. But this time it did not ask me for that setting. So, I tried following things progressively:
1. Uninstall Wireshark from package manager
2. Uninstall wireshark from command line
3. Uninstall and purge wireshark
4. Uninstall, purge and apt autoremove
5. Uninstall, purge, autoremove and then find and delete every file that had wireshark or dumpcap in it's name from the system.

No matter what I did, upon subsequent installation attempt it doesn't ask me that setting (mentioned at the top) again. I'm curious what gets left behind after such thorough clean-up that prevents that option from popping up.

I need that option again. Please help.

Regards.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
firehawk74
Level 1
Level 1
Posts: 4
Joined: Mon Jan 30, 2017 1:41 am

Re: Wireshark reinstallation to allow capture for non-root users?

Post by firehawk74 »

I had the exact same problem, just figured it out.

Run this: sudo dpkg-reconfigure wireshark-common
and select Yes to non-root users.

This will create a wireshark group.

In your start menu open "Users and Groups" and add yourself to the wireshark group by clicking your existing groups and checking 'wireshark' in the dialog which opens.

Then log out and log back in and run Wireshark.

Hope this helps.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: Wireshark reinstallation to allow capture for non-root users?

Post by trytip »

this is what i did:
sudo add-apt-repository ppa:wireshark-dev/stable
apt update
apt install wireshark <<< did NOT check non-root, finish installation
sudo dpkg-reconfigure wireshark-common <<< select yes
sudo usermod -a -G wireshark [username]
loggOFF/IN
Image
Locked

Return to “Software & Applications”