Merge lp:~shuff/ubuntu/precise/net-snmp/fix-for-701944 into lp:ubuntu/precise/net-snmp
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~shuff/ubuntu/precise/net-snmp/fix-for-701944 | ||||
Merge into: | lp:ubuntu/precise/net-snmp | ||||
Diff against target: |
89 lines (+33/-14) 4 files modified
debian/changelog (+9/-0) debian/control (+1/-1) debian/snmpd.postinst (+9/-3) debian/snmpd.postrm (+14/-10) |
||||
To merge this branch: | bzr merge lp:~shuff/ubuntu/precise/net-snmp/fix-for-701944 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ian Hayton | Pending | ||
Review via email: mp+91678@code.launchpad.net |
Description of the change
This branch fixes bug #701944.
The fundamental issue is that the postinst and postrm scripts for the snmpd package attempt to add and remove the 'snmp' user and group, and these scripts fail when that user and/or group are not defined locally on the system, but rather are provided by a directory service. My fix adds additional checks for local definition of user and group by grepping /etc/passwd and /etc/group.
I am submitting this patch against the current trunk of net-snmp; however, given that this issue affects previous distributions, I am particularly interested in seeing this fix backported to lucid (as it is a bugfix, not an enhancement). I'm not entirely sure how to make this happen, and I'd appreciate any help you can provide.
Unmerged revisions
- 59. By Steve Huff
-
typo fix - /etc/group instead of /etc/passwd
- 58. By Steve Huff
-
updated changelog
- 57. By Steve Huff
-
add dependency on grep to support script modifications
- 56. By Steve Huff
-
make sure snmp user/group are local before trying to modify (#710944)
the postinst and postrm scripts fail in an environment where the 'snmp' user
and group are provided via a directory service (e.g. LDAP). this patch adds a
check to make sure the user and group are local before attempting to remove or
create them.