Results 1 to 7 of 7

Thread: Wireshark - unable to start in sudo

  1. #1

    Default Wireshark - unable to start in sudo

    Install wireshark and added it to visudo.

    But wireshark refused to start in konsole
    Code:
    # sudo wireshark
    
    (wireshark:7493): Gtk-WARNING **: cannot open display:
    However, wireshark will start without problem when in root.

  2. #2
    Join Date
    Feb 2009
    Location
    Finland
    Posts
    108

    Default Re: Wireshark - unable to start in sudo

    What about adding your user to the wireshark group ?

  3. #3
    Join Date
    Dec 2009
    Location
    Prague
    Posts
    94

    Default Re: Wireshark - unable to start in sudo

    wireshar is graphical application so you need to use gnomesu instead of sudo.

  4. #4

    Default Re: Wireshark - unable to start in sudo

    Heremod,

    went to yast but doesn't seem to have a wireshark group.



    mjakl ,

    Using kdesu wireshark but still have the same problem.

  5. #5
    Join Date
    Dec 2009
    Location
    Prague
    Posts
    94

    Default Re: Wireshark - unable to start in sudo

    In wireshark.desktop is this:
    /usr/bin/xdg-su -c /usr/bin/wireshark

  6. #6
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Wireshark - unable to start in sudo

    If you want to run graphical applications in sudo here is a good guide:

    /dev/loki: sudo X applications on openSUSE
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  7. #7

    Default Re: Wireshark - unable to start in sudo

    Thanks to all for the advise.

    I don't quite understand why, but
    after removing wireshark from visudo and
    boot up the next day - miraculously kdesu wireshark works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •