This is a multi-part message in MIME format.

--===============0340083339==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_018D_01C6894D.4B862F10"

This is a multi-part message in MIME format.

------=_NextPart_000_018D_01C6894D.4B862F10
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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




------=_NextPart_000_018D_01C6894D.4B862F10
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

=3D"urn:schemas-microsoft-comfficeffice" =
xmlns:w=3D"urn:schemas-microsoft-comffice:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">


charset=3Dus-ascii">









style=3D'font-size:10.0pt;
font-family:Arial'>Hi All>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Can any one help me figure out why I’m get =
permission
denied in the following case.>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Using version net-snmp-5.2.1.2-fc4.1 here is what I =
have>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Snmpd.conf>>



style=3D'font-size:10.0pt;
font-family:Arial'>exec  active_calls /bin/bash =
/usr/src/results>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>when I walk the mib or snmpget I get =
back>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>bin/bash: /usr/src/results: permission =
denied>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>the script is >>



style=3D'font-size:10.0pt;
font-family:Arial'>#!/bin/bash>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>declare -i RESULT=3D`cat =
/usr/src/active`>>



style=3D'font-size:10.0pt;
font-family:Arial'>printf %d $RESULT>>



style=3D'font-size:10.0pt;
font-family:Arial'>exit $RESULT>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>I have chmod 777 the file and the directory but still =
no
luck. >>



style=3D'font-size:10.0pt;
font-family:Arial'>I have tried sh as well and I get the same thing. =
>>



style=3D'font-size:10.0pt;
font-family:Arial'>But if a do >>



style=3D'font-size:10.0pt;
font-family:Arial'>exec active_calls /bin/echo “Hello =
world”>>



style=3D'font-size:10.0pt;
font-family:Arial'>It works>>



style=3D'font-size:10.0pt;
font-family:Arial'>I think it’s a security issue but I’m not =
sure.
I’m using the version 5 community string type authentication. =
 >>



style=3D'font-size:10.0pt;
font-family:Arial'> >>



style=3D'font-size:10.0pt;
font-family:Arial'>Any help would be greatly =
appreciated>>



style=3D'font-size:10.0pt;
font-family:Arial'>>



style=3D'font-size:10.0pt;
font-family:Arial'>Rick>>



style=3D'font-size:10.0pt;
font-family:Arial'>>









------=_NextPart_000_018D_01C6894D.4B862F10--




--===============0340083339==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0340083339==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============0340083339==--