Operating System - HP-UX
1832914 Members
3300 Online
110048 Solutions
New Discussion

libpcap problem - Not Owner

 
SOLVED
Go to solution
Timo J
Frequent Advisor

libpcap problem - Not Owner

How to access /dev/lan and/or /dev/dlpi -devices from own program using libpcap functions. Full error message: "Unable to open device(pcap_open_live): recv_ack: promisc_phys: UNIX error - Not owner"

OK, I won't change the owner of those devices. Is there any decent way to access those devices from normal user processes?
N/A
2 REPLIES 2
Paula J Frazer-Campbell
Honored Contributor

Re: libpcap problem - Not Owner

Hi

Have a look at sudo which can allow lower level users limited higher functions.

http://www.courtesan.com/sudo/www.html


Paula
If you can spell SysAdmin then you is one - anon
Stefan Farrelly
Honored Contributor
Solution

Re: libpcap problem - Not Owner

Put your commands in a script or a C program and change the permissions to add suid to root (chmod 4555 ) so that it gains root permission when it runs so it can access /dev/lan.
Im from Palmerston North, New Zealand, but somehow ended up in London...