Hello Richard,

Let's see:

ls -ld /bin/bash /usr/src/results /usr/src/active /usr/src/ active_calls

Where is "active_calls"? Try checking it's permissions and the permissions
of it's directory.

On 6/6/06, Richard C. Thompson wrote:
>
> 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.


--
When in the Potemkin Wired be a Potemkin Lain.


_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders