[snmp] listening on 162 on linux

Dave Shield D.T.Shield at csc.liv.ac.uk
Fri Jun 15 19:17:20 BST 2007


On 15/06/07, Josh Bers <jbers at bbn.com> wrote:
> Is there a way on linux to allow non-root processes to listen on port 162
> (snmp-trap)?

The usual approach would be to start the process as root,
and have it open the root-only port, before relinquishing root
privileges and switching to run as a different user/group.
  See 'setuid()', 'setgid()' and (on some systems) 'setgroups()'
or 'initgroups()' for details.

Dave


More information about the snmp mailing list