This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

I had a wireshark distribution with me. It is on linux and works well. Now I have to put this wireshark binary on a server. So I used ftp to get the wireshark directory on my server. I copied it in the /root folder.

wireshark has root:root onwership and drwxr-xr-x permissions.

When I go the wireshark directory and try to run wireshark using ./wireshark I get this error ---

-bash: ./wireshark: Permission denied

asked 03 Jun '11, 05:20

sid's gravatar image

sid
45192021
accept rate: 0%

edited 03 Jun '11, 07:41

cmaynard's gravatar image

cmaynard ♦♦
9.3k1038142

1

Anything where ls reports "drwxr-xr-x permissions" is a directory - the "d" isn't a permission, it's a file type. What are the permissions on the file named "wireshark" - i.e., when you go to the wireshark directory and type "ls -l ./wireshark", what does it print?

(03 Jun '11, 20:02) Guy Harris ♦♦

try using sudo wireshark or sudo tshark also.. you can try gksu wireshark or gksu tshark

hope this helps, John

permanent link

answered 03 Jun '11, 05:23

John_Modlin's gravatar image

John_Modlin
1205
accept rate: 0%

Hello John,

When I do a sudo wireshark, this is what I get -->>

sudo: wireshark: command not found

(03 Jun '11, 06:20) sid

I'm not sure which version of Linux you're running, but you might try the linux distributable from wireshark.org. http://www.wireshark.org/download.html On the bottom right there will be downloadable distributions based on the version of Linux you're running. I'm running it on a few Linux boxes, but they're both Debian, so I'm not sure about the other versions. sudo will run wireshark with supervisor/admin priveleges, but if it doesn't find Wireshark or Tshark applications, you'll get the error you showed above. gksu will also allow you to run the applications with supervisory priveleges. So those 2 commands will help get around a possible security/access problem. I used the Synaptic Package Manager to install Wireshark under Linux.

Sorry that didn't work for you, John

(03 Jun '11, 07:00) John_Modlin
2

Make sure you run sudo ./wireshark (and not sudo wireshark unless wireshark is in your path, which doesn't appear to be the case).

(04 Jun '11, 17:11) helloworld
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×8

question asked: 03 Jun '11, 05:20

question was seen: 8,546 times

last updated: 04 Jun '11, 17:11

p​o​w​e​r​e​d by O​S​Q​A