Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # INSTALLING WIRESHARK ON UBUNTU 14.04 LTS
- sudo apt-get install wireshark
- # No interface can be used for capturing in this system with the current configuration
- # If you run wireshark as a non root user at this stage (see image above), you will get the message “No interface can be used for capturing in this system with the current configuration.”.
- # The following steps will rectify this.
- #
- # Create the wireshark group.
- sudo addgroup -system wireshark
- #
- # Add your username to the wireshark group
- sudo usermod -a -G wireshark $USER
- #
- # 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
- #
- # At this point, you will need to log out, then back into Unity.
- # You should now be able to run Wireshark as a non-root user, just as long as that user is part on the wireshark group, everything should just work.
Advertisement
Add Comment
Please, Sign In to add comment