5/25/2023 0 Comments Sudo wireshark![]() On Linux you have to run Wireshark as root (sudo wireshark). TLDR Is this standard practice and the way this should be done, to achieve separation between root and other user account? It seems like a "hack" to me. This tutorial will shortly introduce the sniffer Wireshark. So if you started the X server under your own account (greg) then any other user (like root) doesn't have access to it." You don't want just anybody opening windows on your screen, do you. "This has to do with access control to your X server. ![]() What was the point in granting access to the other user if they can't open the program anyway? This separating is done for security reasons, so isn't making that above modification reverting the earlier comment 'export AUTHORITY=/home/greg/.Xauthority'." Or root can take it, because it can access your files: You (greg) can grant it by means of 'xhost local:root'. "You have two ways to get this working: grant it or have root take it. And the gtk-warning cannot open display seems to relate exactly to this issue. ![]() The "no protocol specified" part seems pretty straight forward. Wireshark is a tool that is used to investigate the packets of the data that are coming into and out of a particular network. I get the following error: no protocol specified But when I try to start wireshark as the wireshark user, using: sudo -s -u $USER wireshark Launch your browser and go to any site you wish: Inspect HTTP Network Traffic To begin every subsequent tip, stop the live capture and edit the capture filter. Step 3: Use the repository to install Wireshark. TIP 1 Inspect HTTP Traffic Type http in the filter box and click Apply. sudo apt update Enter your password to permit the packages update. ![]() I am setting up wireshark to run as non root user, a la here, that is: sudo apt-get install wireshark Install Wireshark on Ubuntu 20.04 Step 1: First of all, Open up the terminal by searching it manually in activities, or you can also press ‘CTRL+ALT+T’ to view the terminal window.
0 Comments
Leave a Reply. |