2

I'm trying to add a user to a group wireshark as explained here.

I have already executed multiple different commands and was under the impression that the user was successfully added.

~$ sudo adduser $USER wireshark
The user `user' is already a member of `wireshark'.

And have re logged into the system.

~$ groups 
user adm cdrom sudo dip plugdev lpadmin sambashare

but it seems as if the user hasn't been added to the group (which is in contrast with the first command). Also the assumption that it wasn't added is supported by Wireshark not working correctly.

Which should I consider correct?

5

The command groups is not showing you as a member of wireshark and you're unable to use wireshark properly unprivileged. Chances are something has not worked with the adduser wrapper script.

What works for me when enabling new users to use wireshark is the following.

$ sudo usermod -aG wireshark $USER

Then log the user out and back in. You should now be able to use wireshark as a non root user.

5

It starter to show the appropriate groups only after a system restart. The logout - login wasn't enough.

Don't know what to make of it.

  • I encountered the same when working with an Amazon EC2 instance running their own flavor of "Amazon Linux". I had to restart the instance for the group change to take effect. Exiting and starting a new terminal session was not enough. – Eric Seastrand Dec 6 '18 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.