SUSE Support

Here When You Need Us

How to start Wireshark not as root user on SLES

This document (7016607) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11 Service Pack 3 (SLES 11 SP3)
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 11 Service Pack 3 (SLED 11 SP3)

Situation

Starting wireshark via Gnome or KDE startmenu always asks for the root password.
If that is not desired, users have to start wireshark from a terminal.

Resolution

There's are more elegant way to do that and afterwards wireshark will start only with user rights. To obtain a live capture it needs to be started from a superuser terminal then (can't have both)!

On SLES/SLED 11:

For a global change, edit as root:

/usr/share/applications/wireshark.desktop

and either remove the whole line, or add a "#" at beginning of the line:

X-KDE-SubstituteUID=true

That change will be undone with each wireshark update, though.

To do this permanently for a user, copy the above  wireshark.desktop file to:

$USER/.local/share/applications/

and proceed as above. Then make sure the user logs off and on again.

SLES/SLED12:

Same configuration file, only the necessary changes differ. Edit   /usr/share/applications/wireshark.desktop and search for:

Exec=/usr/bin/xdg-su -c /usr/bin/wireshark %f

Change the line to:

Exec=/usr/bin/wireshark %f

Save the file and log off and on again.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7016607
  • Creation Date: 15-Jun-2015
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.