net-snmp-config doesn't work without /bin/bash

Bug #104738 reported by Colm MacCarthaigh on 2007-04-09
4
Affects Status Importance Assigned to Milestone
Net-SNMP
Fix Released
Undecided
Unassigned
dash (Ubuntu)
Low
Unassigned
Declined for Hardy by Matthias Klose
net-snmp (Ubuntu)
Undecided
Unassigned
Declined for Hardy by Matthias Klose

Bug Description

Gutsy+Binary package hint: libsnmp-base
Feisty- Binary package hint: libsnmp9-dev

root@lux-master:/etc/snmp# net-snmp-config --create-snmpv3-user -ro -a "<censored>" venice
adding the following line to /var/lib/snmp/snmpd.conf:
   createUser venice MD5 "<censored>" DES
adding the following line to /usr/share/snmp/snmpd.conf:
   rouser venice
shift: 485: can't shift that many

dash can't handle the number of shift in the shell script. Changing it to use /bin/bash makes it work fine :-)

Issue found on edgy,feisty, gutsy, and hardy

Bryan Quigley (bryanquigley) wrote :

This issue is still in feisty and prevents the creation of an snmpv3 user. This is the recommenced way to create SNMPv3 users. You need SNMPv3 users to use SNMPv3 so SNMPv3 is pretty much unusable by default.

description: updated
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package net-snmp - 5.4.1~dfsg-4ubuntu2

---------------
net-snmp (5.4.1~dfsg-4ubuntu2) hardy; urgency=low

  * net-snmp-config: Use bash. LP: #104738.

 -- Matthias Klose <email address hidden> Wed, 06 Feb 2008 14:45:12 +0000

Changed in net-snmp:
status: New → Fix Released
Matthias Klose (doko) on 2008-02-06
Changed in dash:
importance: Undecided → Low
status: New → Confirmed
Bryan Quigley (bryanquigley) wrote :

Fixed in #1838427 on sf.net, but tracker is not being updated for some reason. Fix has made it back to Ubuntu as well. And it works just using /bin/sh

Changed in dash (Ubuntu):
status: Confirmed → Fix Released
Changed in netsnmp:
importance: Unknown → Undecided
status: Unknown → New
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.