Bug 1393855 - Please move wireshark to /usr/bin
Summary: Please move wireshark to /usr/bin
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: wireshark
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1380537 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-10 13:16 UTC by Andreas Schneider
Modified: 2016-12-15 17:05 UTC (History)
8 users (show)

Fixed In Version: wireshark-2.2.2-3.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 14:33:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Proposed spec file change (5.21 KB, patch)
2016-11-30 14:21 UTC, Martin Sehnoutka
asn: review+
Details | Diff
proposed spec file (41.29 KB, text/plain)
2016-11-30 14:22 UTC, Martin Sehnoutka
no flags Details

Description Andreas Schneider 2016-11-10 13:16:32 UTC
Description of problem:

Please move wireshark from /usr/sbin to /usr/bin.

I think Wireshark is mostly used to open and read pcap files. It doesn't require root privileges for this!


Thanks.

Comment 1 Peter Lemenkov 2016-11-10 14:02:14 UTC
(In reply to Andreas Schneider from comment #0)
> Description of problem:
> 
> Please move wireshark from /usr/sbin to /usr/bin.
> 
> I think Wireshark is mostly used to open and read pcap files. It doesn't
> require root privileges for this!

It's certainly not :)
For example I'm using it for making dumps more often that tshark or tcpdump. Btw tcpdump cannot select between available network interfaces (while tshark can).

Still even if it requires root provileges, there is no point to store anything in /sbin-directories anymore. It was put there just because, due to following rules from our historical UN*X heritage.

So bottom line - I also believe we should move it to /usr/bin.

Comment 2 Peter Robinson 2016-11-18 14:29:15 UTC
*** Bug 1380537 has been marked as a duplicate of this bug. ***

Comment 3 Martin Sehnoutka 2016-11-24 10:10:55 UTC
(In reply to Peter Lemenkov from comment #1)
> (In reply to Andreas Schneider from comment #0)
> > Description of problem:
> > 
> > Please move wireshark from /usr/sbin to /usr/bin.
> > 
> > I think Wireshark is mostly used to open and read pcap files. It doesn't
> > require root privileges for this!
> 
> It's certainly not :)

Do you want to move all executables produced by wireshark package into /usr/bin or just wireshark?

$ rpm -ql wireshark-cli  | grep sbin
/usr/sbin/capinfos
/usr/sbin/captype
/usr/sbin/dftest
/usr/sbin/dumpcap
/usr/sbin/editcap
/usr/sbin/mergecap
/usr/sbin/randpkt
/usr/sbin/rawshark
/usr/sbin/reordercap
/usr/sbin/text2pcap
/usr/sbin/tshark

Comment 4 Andreas Schneider 2016-11-25 08:30:49 UTC
I would move all of them to /usr/bin

Comment 5 Peter Lemenkov 2016-11-25 11:23:21 UTC
(In reply to Martin Sehnoutka from comment #3)
(In reply to Andreas Schneider from comment #4)
> I would move all of them to /usr/bin

Agree.

Comment 6 Martin Sehnoutka 2016-11-30 14:21:27 UTC
Created attachment 1226344 [details]
Proposed spec file change

Comment 7 Martin Sehnoutka 2016-11-30 14:22:25 UTC
Created attachment 1226345 [details]
proposed spec file

Comment 8 Martin Sehnoutka 2016-12-01 10:44:46 UTC
I pushed the new spec file into git and made a new build.

version with the change: wireshark-2.2.2-3.fc26

Comment 9 Martin Sehnoutka 2016-12-06 14:59:18 UTC
The patch broke updates on Fedora Rawhide, the cause is a call to update-alternatives which expects the path to be `/usr/sbin/wireshark`.

Related rhbz: #1400654

We came up with two possible solutions: Either remove all symlinks under name wireshark and then create a new symlink pointing to /usr/bin/ or create a new group with called for instance `wireshark-gui` which will be preferred over sbin because of the order in $PATH variable.

update-alternatives --install /usr/bin/wireshark wireshark-gui
/usr/bin/wireshark-qt 50

Do you have any comment related to this issue?

Comment 10 nucleo 2016-12-15 17:05:26 UTC
# rpm -q wireshark-qt
wireshark-qt-2.2.2-4.fc26.i686

Problem with desktop file from this rpm:

# grep Exec /usr/share/applications/wireshark.desktop
TryExec=/usr/sbin/wireshark
Exec=/usr/sbin/wireshark %

# /usr/sbin/wireshark
-bash: /usr/sbin/wireshark: No such file or directory


Note You need to log in before you can comment on or make changes to this bug.