First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Wireshark is telling me to run this comand "sudo usermod -a -G wireshark {your username}". What username does it mean?

I'm installing wireshark on my Ubuntu PC version 20 and it says I need to:

check to make sure you have sufficient permissions

So I run

sudo dpkg-reconfigure wireshark-common

Than I accepted. But now I don't know what to do next.

Jedrzej's avatar
5
Jedrzej
asked 2021-02-02 12:13:24 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

The command sudo usermod -a -G wireshark {your username} adds the account with {your username} to the wireshark group which has permission to capture on interfaces without requiring sudo.

So replace {your username} with the name of your account, i.e. the output of whoami, i.e. for me, with account grahamb it would be: sudo usermod -a -G wireshark grahamb

grahamb's avatar
23.8k
grahamb
answered 2021-02-02 13:17:08 +0000
edit flag offensive 0 remove flag delete link

Comments

This was my output once running the command with the right username. "usermod: user '{jonathan}' does not exist". And wireshark still said I don't have the right permissions.

Jedrzej's avatar Jedrzej (2021-02-05 09:50:51 +0000) edit

The curly braces are not meant to be included, they are part of the placeholder in the example. In your case you should enter sudo usermod -a -G wireshark jonathon.

grahamb's avatar grahamb (2021-02-05 09:56:57 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer