Can someone explain me how can I add my user to wireshark group? usermod -a -G is not working, if I add manually the wireshark group to /etc/group, like this:
echo -E wireshark:x:967: >> /etc/group
then the usermod command works and it adds my user to the wireshark group, everything seems working fine until i try to install a new pkg or upgrade the system, the rpm-ostree commands return the error:
While applying overrides for pkg wireshark-cli: Could not find group 'wireshark' in group file
(rmp-ostree returns to work properly if a I remove the wireshark group from /etc/group)
I guess I'm missing something, it is the first time I'm using a distro with ostree
users and groups are handled slightly differently than on a traditional system. most of them are stored in /usr/lib/group instead.
/usr/lib/group
here is what I did:
# rpm-ostree install wireshark-cli # reboot # cat /usr/lib/group | grep wireshark >> /etc/group # vi /etc/group # add your username to the end of the wireshark line # logout/login
cc @jlebon since he probably has a better answer
Heh, was looking at this too.
Right, the issue is more subtle in this case. And investigating this actually uncovered some issues I hadn't really thought through before. Anyway, upstreamed here: https://github.com/projectatomic/rpm-ostree/issues/1843.
The tl;dr though is there's no good way to do this right now other than removing yourself from /etc/group and running it as root for now.
/etc/group
ok, thanks
I will close this with a link to the troubleshooting section the Fedora Silverblue documentation - https://docs.fedoraproject.org/en-US/fedora-silverblue/troubleshooting/#_unable_to_add_user_to_group
Metadata Update from @tpopela: - Issue status updated to: Closed (was: Open)
Login to comment on this ticket.