Operating System - HP-UX
1753774 Members
6899 Online
108799 Solutions
New Discussion юеВ

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 5
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.