title: NoAccess error in snmpset
body: <p>I have a MIB object with read-write permission. MIB section looks like this:</p>
  
  <pre><code>EnableHalt OBJECT-TYPE
    SYNTAX Integer32
    MAX-ACCESS read-write
    STATUS current
    DESCRIPTION "implemented in NetSnmpcodsMr.c file."
    DEFVAL { 0 }
  ::= { Scalars 4 }
  </code></pre>
  
  <p>When I do a set on this object I get:</p>
  
  <pre><code>$ sudo snmpset -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0 i 1
  Error in packet.
  Reason: noAccess
  Failed object: NET-SNMP-MIB::netSnmp.2.2.4.0
  </code></pre>
  
  <p>When I do a get:</p>
  
  <pre><code>$ snmpget -v 2c -c public localhost 1.3.6.1.4.1.8072.2.2.4.0
  NET-SNMP-MIB::netSnmp.2.2.4.0 = INTEGER: 1
  </code></pre>
  
  <p>All is fine!</p>
  
  <p>In snmpd.conf I added the line:</p>
  
  <pre><code>rwcommunity public localhost
  </code></pre>
  
  <p>Still noAccess issue. I'm using net snmp 5.4.2.1 on Ubuntu</p>
  
  <p>What am I doing wrong? Please advice Thanks Gil</p>