Re: UDP - snmp trap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

See inline....

nomit kalidhar wrote:

> Hi,
>
> I am using an  API which listens on UDP port 162 (SNMP Trap).
> But that API fails if I dont run with superuser access.
> It fails saying BIND FAILED, access denided.

Access denied... that is you need root permission

>
>
> I guess if some daemon is already using that port, other programs fails
> while binding to that socket.

If this is the case you would have got the message "connection refused".

>
>
> Do anybody know what is the reason

You need root access.

> and how I can listen on UDP port 162
> without superuser access.

port numbers upto 256 is reserved for critical services and if normal users
are allowed to tamper with it, it might be some form of security breach. On
those lines I think it shouldn't be possible.

Please let me know if I am wrong.

Thanks,
- Mohan.

>
> I am using redhat linux 7.0 kerner 2.2.16-22
>
> TIA
>
> Nomit
>
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux