LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-03-2011, 06:32 AM   #1
fantasy1215
Member
 
Registered: Oct 2011
Posts: 75

Rep: Reputation: Disabled
Can tshark run under none root permission?


I can't have root right, I can't run tcpdump, so I compile tshark from the src, now I've compiled it successfully, I run command "tshark -f "tcp port 6201" -i eth0 -w ./capture.cap" to capture data, but it complains "Capturing on eth0
tshark: The capture session could not be initiated (You don't have permission to capture on that device).
Please check to make sure you have sufficient permissions, and that you have the proper interface or pipe specified."
What does that mean? So I can't capture any data without root permission? I really need to monitor my port data flow.
Thanks in advance!
 
Old 11-03-2011, 10:30 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Actually, you probably can run tcpdump: consider the following
Code:
which tcpdump      #NB: I ran this cmd as root to ensure I could find it
/usr/sbin/tcpdump
ll /usr/sbin/tcpdump
-rwxr-xr-x 1 root root 729772 Jul 13  2006 /usr/sbin/tcpdump
so it can be run by anyone IF you supply the absolute/complete path.
Whether you have perms to monitor a given port/device is a different qn; if you haven't, ask your SysAdmin.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tshark gives "permission denied" writing to (any) file in home dir. kr0m3 Linux - Networking 5 08-16-2016 12:22 PM
Giving a user root permission via the root group louisb Linux - Security 6 07-23-2007 01:56 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 03:21 PM
can't run ./install scripts, permission denited as root bentman78 Linux - Software 1 05-26-2004 11:10 AM
Permission run konqueror as root in KDE lynxgogo Linux - Software 6 12-13-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration