![]() ![]() This portion was taken from Sniffing with Wireshark as a Non-Root User. Run Wireshark as non-root user to capture packets Now when you start Wireshark as a regular (non-root) user you’ll be able to display packets without providing root credentials. You’ll have to do this for all non-root users who need to run Wireshark. The one change we make is to execute Wireshark as a regular user and not as root. In the command above we are creating a copy of /usr/share/applications/sktop and saving it to /home/cguser/.local/share/applications/sktop. There’s a simple workaround to this by creating a local sktop file, copied from /usr/share/applications/sktop, with a slight modification.Ĭat /usr/share/applications/sktop | sed -e 's!Exec=/usr/bin/xdg-su -c /usr/bin/wireshark %f!Exec=/usr/bin/wireshark %f!g' > /home/cguser/.local/share/applications/sktop There is one caveat to running Wireshark in openSUSE as non-root user: when you run Wireshark from the GUI (say GNOME Shell) you are prompted to enter the root password. Install Wireshark: sudo zypper install wireshark Run Wireshark as non-root user to view captures If you don’t have root privileges or want to capture packets as your regular user then you need a few extra steps. However, to capture packets you need root privileges. You also don’t need to do anything extra other than installing it. To display packets or view pcap files you don’t need to run Wireshark as root. ![]() ![]() There are two aspects of using Wireshark in openSUSE: capturing packets and displaying packets. ![]()
0 Comments
Leave a Reply. |