Install wireshark in ubuntu
For super admin:
For super admin:
get wireshark and install
sudo apt-get install wireshark
Change the mode of the file dumpcap to allow execution
sudo chmod 777 /usr/bin/dumpcap
Grant capabilities with setcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
Verify the change
sudo getcap /usr/bin/dumpcap
For others:
get wireshark and install
sudo apt-get install wireshark
Add your username to the wireshark group
sudo usermod -a -G wireshark YOUR_USER_NAME
Change the group ownership of file dumpcap to wireshark
sudo chgrp wireshark /usr/bin/dumpcap
Change the mode of the file dumpcap to allow execution
by the group wireshark
sudo chmod 750 /usr/bin/dumpcap
Grant capabilities with setcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
Verify the change
sudo getcap /usr/bin/dumpcap.
Ref: http://www.dickson.me.uk/2012/09/17/installing
-wireshark-on-ubuntu-12-04-lts/
|