Check the snmpd.conf file , may be the community string specified is not in sink with the agent community...




"Richard C. Thompson" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

06/06/2006 07:10 PM

Please respond to
[EMAIL PROTECTED]

To
<[email protected]>
cc
Subject
permission denied





Hi All
 
Can any one help me figure out why I’m get permission denied in the following case.
 
Using 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
 
the script 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.
I have tried sh as well and I get the same thing.
But if a do
exec active_calls /bin/echo “Hello world”
It works
I think it’s a security issue but I’m not sure. I’m using the version 5 community string type authentication.  
 
Any help would be greatly appreciated
 
Rick
 _______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders



***********************  FSS-Private   ***********************
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to