Linux – Can’t add user to group without a restart

grouplinuxusers

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?

Best Answer

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.

Related Question