exec error

"Richard C. Thompson" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <01b601c684c1$f055b0a0$6400000a@rtlaptop>
Hi All

 

I've been racking my brains trying to figure out why I'm get permission
denied in the following case.

 

Using UCDavis MIB in snmpd.conf version net-snmp-5.2.1.2-fc4.1 here is what
I have

 

Snmpd.conf

exec  active_calls /bin/bash /usr/src/results

 

when I walk the mib or snmpget I get back

 

bin/bash: /usr/src/results: permission denied

 

results file is 

#!/bin/bash

 

declare -i RESULT=`cat /usr/src/active`

printf %d $RESULT

exit $RESULT

 

 

 

 

I have chmod 777 the file and the directory but still no luck. 

 

Any help would be greatly appreciated

 

Rick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.