henrydenhengst

INSTALLING WIRESHARK ON UBUNTU 14.04 LTS

May 18th, 2015
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.12 KB | None | 0 0
  1. #!/bin/bash
  2. # INSTALLING WIRESHARK ON UBUNTU 14.04 LTS
  3. sudo apt-get install wireshark
  4. # No interface can be used for capturing in this system with the current configuration
  5. # 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.”.
  6. # The following steps will rectify this.
  7. #
  8. # Create the wireshark group.
  9. sudo addgroup -system wireshark
  10. #
  11. # Add your username to the wireshark group
  12. sudo usermod -a -G wireshark $USER
  13. #
  14. # Change the group  ownership of file dumpcap to wireshark
  15. sudo chgrp wireshark /usr/bin/dumpcap
  16. #
  17. # Change the mode of the file dumpcap to allow execution by the group wireshark
  18. sudo chmod 750 /usr/bin/dumpcap
  19. #
  20. # Grant capabilities with setcap
  21. sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
  22. #
  23. # Verify the change
  24. sudo getcap /usr/bin/dumpcap
  25. #
  26. # At this point, you will need to log out, then back into Unity.
  27. # 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