snmpv3 user authorization error

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
hi,

     i wanted to create snmpv3 users.
     i succeeded in creating readonly user but not readwrite user.
     i tried the following commands.

1. snmpget -v 3 -u ganesh -a MD5 -A passphrase localhost sysLocation.0

is working properly.

But the following two commands are not working.

2. snmpget -v 3 -u yellapu -a MD5 -A passphrase  localhost sysLocation.0

error inpacket:
reason:authorization error<access denied to that object.

3. snmpget -v 3 -u yellapu -a MD5 -A passphrase  -x DES -X passphrase localhost sysLocation.0

error inpacket:
reason:authorization error<access denied to that object.


Kindly find the attachments snmp.conf and snmpd.conf


thanks
ganesh y





Confidentiality Notice

The information contained in this electronic message and any 
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain confidential or privileged 
information. If you are not the intended recipient, please notify
the sender at Bharat Electronics  or [email protected] immediately
and destroy all copies of this message and any attachments.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmp.conf (application/octet-stream, 2.3 KB)
###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Default Authentication Options
#
#   This section defines the default authentication
#   information.  Setting these up properly in your
#   ~/.snmp/snmp.conf file will greatly reduce the amount of
#   command line arguments you need to type (especially for snmpv3).

# defaultport: The default port number to use
#   This token specifies the default port number you want packets to 
#   be sent to and received from.
#   override: with -p on the command line.
#   arguments: portnum

defaultport  161

# defversion: The default snmp version number to use.
#   override: with -v on the command line.
#   arguments: 1|2c|3

defversion  2c

# defcommunity: The default snmpv1 and snmpv2c community name to use when needed.
#   If this is specified, you don't need to include the community
#   name as an argument to the snmp applications.  
#   override: with -c on the command line.
#   arguments: communityname

defcommunity  public












###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Default Authentication Options
#
#   This section defines the default authentication
#   information.  Setting these up properly in your
#   ~/.snmp/snmp.conf file will greatly reduce the amount of
#   command line arguments you need to type (especially for snmpv3).

# defsecuritylevel: The default snmpv3 security level to use
#   override: with -l on the command line.
#   arguments: noAuthNoPriv|authNoPriv|authPriv

defsecuritylevel  authNoPriv

# defauthtype: The default snmpv3 authentication type name to use
#   override: with -a on the command line.
#   arguments: authtype

defauthtype  MD5

# defauthpassphrase: The default snmpv3 authentication pass phrase to use
#   Note: It must be at least 8 characters long.
#   override: with -A on the command line.
#   arguments: passphrase

defauthpassphrase  passphrase
snmpd.conf (application/octet-stream, 2.3 KB)
createUser ganesh  MD5 "passphrase"
createUser yellapu MD5 "passphrase"  DES "passphrase"



###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public localhost 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  private localhost 












###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  COMMUNICATIONS

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontact  "GANESH Y"



###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rouser: a SNMPv3 read-only user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rouser  ganesh auth


rouser yellapu priv
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.