Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
How to add write permissions for a group?

When I run Wireshark, It shows the following message:

Couldn't run /usr/sbin/dumpcap in child process: Permission denied
Are you a member of the 'wireshark' group? Try running
'usermod -a -G wireshark _your_username_' as root.

I ran this command: usermod -a -G wireshark myusername and checked my groups using groups myusername and I was added to the wireshark group. But I still get that error message.

[nima@nma ~]$ groups nima
nima : nima wheel dialout wireshark
[nima@nma ~]$ ls -l /usr/sbin/dumpcap 
-rwxr-x--- 1 root wireshark 67884 Aug 16 12:04 /usr/sbin/dumpcap
[nima@nma ~]$ /usr/sbin/dumpcap
-bash: /usr/sbin/dumpcap: Permission denied

What's the problem?

share|improve this question

marked as duplicate by Gilles, jasonwryan, Chris Down, Renan, Mat Nov 15 '12 at 19:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 2 down vote accepted

You need to update your group IDs by using newgrp.

share|improve this answer
    
This is not what you want to do, that would start a new shell with the real group id set to wireshark, so every file or process you create for instance would be group-owned "wireshark". You want "newgrp" alone or sudo -su "$USER", and in any case, that would only affect the group list of that new shell process and its children. You'd still need to logout to be able to start a new login session with the new group included. –  Stéphane Chazelas Nov 14 '12 at 21:16

Did you logout and then login and try the command?

share|improve this answer
    
@ChrisDown Thanks. Please submit your comment as answer –  Omid Nov 14 '12 at 17:43

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