SNMP trap handler (snmptrapd)
I'm installing an application server for my team which need to give the option for a user to run snmptrapd.
What basically is going to happen is the user login, it gets a menu and select an option to run snmptrapd.
when i login with the user and run snmptrapd this is what i get:
snmptrapd -f -C -c /usr/local/etc/snmp/snmptrapd.conf -Le
couldn't open udp:162 -- errno 13 ("Permission denied")
It works fine if i run it as root but need to give the user the option to run it as well without root:
Current shell for trapadmin:
[root at asteriskvnt trapadmin]# chsh trapadmin
Changing shell for trapadmin.
New shell [/bin/rbash]: ^C
[root at asteriskvnt sbin]# pwd
[root at asteriskvnt sbin]# ls snmptrapd -al
-rwxrwxrwx 1 root root 47792 2009-08-20 15:47 snmptrapd
So not sure which permissions should I modify or path for troubleshooting
snmptrapd Permission Denied
Port 162 is a privileged port. It can only be bound to if you are root user.
Currently as i see, you are trying to start the service as a non-root user.
That would not be possible. There are certain things which only a root user is allowed to do in Linux, like inserting driver modules, changing kernel parameters with sysctl and then this.
Hope this helps.