Operating System - HP-UX
1824516 Members
4269 Online
109672 Solutions
New Discussion юеВ

tcpdump run as root not as any other user

 
SOLVED
Go to solution
Achilles_2
Regular Advisor

tcpdump run as root not as any other user

Hi all,

I run tcpdump as root and work but not work as any other user. It doesn't work on HP-UX - I get
tcpdump: recv_ack: promisc_phys: Not owner

from tcpdump.

How to fix it?

Thanks
Alex

8 REPLIES 8
Joseph Loo
Honored Contributor

Re: tcpdump run as root not as any other user

hi,

though i do not use tcpdump, please reply on the permission of this command:

# ls -ld //tcpdump

regards.
what you do not see does not mean you should not believe
Manish Srivastava
Trusted Contributor

Re: tcpdump run as root not as any other user

Hi Alex,

I think you have to be root on HP-UX to run tcpdump. Refer the following link:
http://ai3.asti.dost.gov.ph/sat/tcpdump.html

http://www.tcpdump.org/tcpdump_man.html

manish.
Victor Fridyev
Honored Contributor
Solution

Re: tcpdump run as root not as any other user

Hi,
Basically you can add s or S bit to the executable file, but this may cause security problems.
The best way is to give root privileges for this command via sudo for all users.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Achilles_2
Regular Advisor

Re: tcpdump run as root not as any other user

Victor,

Your suggestion is to give root privileges for this command via sudo for all users. How do I do?

Alex
Fred Ruffet
Honored Contributor

Re: tcpdump run as root not as any other user

If you have sudo installed, you must edit /etc/sudoerrs file.
--

"Reality is just a point of view." (P. K. D.)
Achilles_2
Regular Advisor

Re: tcpdump run as root not as any other user

where can I get the source?

Alex
John Carr_2
Honored Contributor

Re: tcpdump run as root not as any other user

Victor Fridyev
Honored Contributor

Re: tcpdump run as root not as any other user

Hi, Alex

You run visudo and do something like this:
Host_Alias MAIN=yourhostname

Cmnd_Alias TCPD=/usr/local/bin/tcpdump

ALL MAIN=NOPASSWD:TCPD


Good Luck
Entities are not to be multiplied beyond necessity - RTFM