How to wireshark with user rights

It's often nessesary to run wireshark with user rights.

Install wireshark

For Fedora&RH Based distributions:

yum install wireshark-gnome

Create a new user group

groupadd wireshark

Assing the users to the new group

/etc/group

wireshark:x:6668:user1,user2

Permissions of dumpcap

change the permissions and owner of dumpcap

chown root:wireshark `which dumpcap`
chmod 6550 `which dumpcap`

Change the startup procedure

In RH Based distros consolehelper is used as wrapper to prompt for root password for applications, which need root permissions.

ls -l /usr/bin/wireshark

We don't need it anymore, so we change this symlink.

unlink /usr/bin/wireshark
ln -s /usr/sbin/wireshark /usr/bin/wireshark

From now we start the right wireshark application

See also

Discussion

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.