Ticket #420 (closed task: invalid)
User permissions for tcpreplay
| Reported by: | nikhilnitc | Owned by: | Mikkey |
|---|---|---|---|
| Priority: | medium | Milestone: | 3.4.4 |
| Component: | tcpreplay | Version: | 3.4.3 |
| Keywords: | Cc: | ||
| Operating System: | Add to FAQ?: | no | |
| Hardware: | All | ||
| Output of tcpreplay -V: | tcpreplay version: 3.4.3 (build 2375) Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net> Cache file supported: 04 Not compiled with libdnet. Compiled against libpcap: 0.8.3 64 bit packet counters: enabled Verbose printing via tcpdump: disabled Packet editing: disabled Fragroute engine: disabled Injection method: PF_PACKET send() | ||
Description
Do i need to have root permissions to always use tcpreplay ? I tried using it in my script and it threw the following error : " Warning: May need to run as root to get complete list.
Fatal Error: Can't open eth0: socket: Operation not permitted
"
But tcprewrite had no issues on being executed.Please let me know if i can use tcpreplay without root permissions because i cant provide root access to all who use my script in my project.
Kindly mail your reply to nikhilnitc@… Regards, Nikhil.
Change History
Note: See
TracTickets for help on using
tickets.

Yes, tcpreplay requires root permissions. This is a function of the operating system, not tcpreplay.