> From: net-snmp-users-bounces@lists.sourceforge.net
> [mailto:net-snmp-users-bounces@lists.sourceforge.net] On
> Behalf Of Isaac Eliassi
> Sent: Sunday, March 23, 2008 3:05 AM

> I am creating an agent and I noticed that when I run it as
> root everything seems to be ok,
> When I execute it as another user I get the following error :
> Error opening specified endpoint ""
> Server Exiting with code 1
> The execution command are the same
> /usr/local/sbin/snmpd -c /usr/local/share/snmp/snmpd.conf -C -Lf 1.txt
> Is it because the default UDP port is 161 ? how can I run it
> as a user which is not a superuser?

Unixen will not permit a port <4096 to be opened by a uid other than 0. If you are on a unix family host, then you may run snmpd as non-root, but *must* use a port number >=4096. I typically use port numbers of the form XX1161/XX162, e.g. 11161/11162.



This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
Net-snmp-coders mailing list