LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 09:30 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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



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 6 10-08-2019 06:45 AM
Giving a user root permission via the root group louisb Linux - Security 6 07-23-2007 12:56 AM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
can't run ./install scripts, permission denited as root bentman78 Linux - Software 1 05-26-2004 10:10 AM
Permission run konqueror as root in KDE lynxgogo Linux - Software 6 12-13-2003 02:27 PM

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

All times are GMT -5. The time now is 12:58 PM.

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
Open Source Consulting | Domain Registration