HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

tcpdump: no suitable device found

 
mondal
Occasional Contributor

tcpdump: no suitable device found

Hi All,

I am trying to run tcpdump command as root ,it is working fine . I want to give 'oracle' user
to run the command . I changed the permission of tcpdump command as -rwxr-xr-x . When I am running the command I am getting the below error.

nuh501:/home/root # /usr/local/sbin/tcpdump host nuh501
tcpdump: no suitable device found
5 REPLIES
Jim Walls
Trusted Contributor

Re: tcpdump: no suitable device found

You can only run tcpdump as root because other users do not have permission to access the underlying network devices.

It is also good from a security perspective since it limits access to people with the proper authority to snoop network connections.

Kapil Jha
Honored Contributor

Re: tcpdump: no suitable device found

Reading packets from a network interface may require that you have special privileges:


You must be root or tcpdump must be installed setuid to root.


From Man page....

BR,
Kapil+
I am in this small bowl, I wane see the real world......
mondal
Occasional Contributor

Re: tcpdump: no suitable device found

Hi All ,

Thanks for the information . If I am providing the user details and command alias
in /etc/sudoers file it will work?
SoorajCleris
Honored Contributor

Re: tcpdump: no suitable device found

It is not that the permission of the command .. but the data which it access.. still , may be need to check . Never run as non root.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Jim Walls
Trusted Contributor

Re: tcpdump: no suitable device found

Yes, you should be able to run it from a non-privileged login using sudo.