snmpd upgrade (Bionic->Focal) changes Debian-snmp UID/GID
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-snmp (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Removeing users on "remove" instead of doing so only on "purge"
can lead to some fallout.
* We stopped doing so since 18.10, backporting the same fix to Bionic
[Test Case]
* apt install snmpd
* grep snmp /etc/passwd
* apt remove snmpd
* grep snmp /etc/passwd
* apt install snmpd
* grep snmp /etc/passwd
With the fix installed this should not change the UID anymore when running
the above and also not vanish in between.
[Regression Potential]
* It was wrong to re-create the user every time, I don't see an issue "not
to remove it" on apt remove - if people want things gone they are using
"apt purge".
If anything first installs net-snmp, to then remove it and expects the
Debian-snmp is free that would change - but that seems like a very
constructed case.
* The real "potential" is that any upgrade will trigger the bug "once".
That includes this update - see below in [Other Info]
[Other Info]
* No matter which way we turn this, this bug will be triggered "once" when
the old postrm is run. We don't need/want to trigger it with this
update. Therefore the intention is to only make this available in -
proposed and mark it as block-proposed. On any later functional or
security update which would trigger the bug "anyway" it would then be
included and fixed.
---
snmpd upgrade bionic->focal changes Debian-snmp UID/GID. Tested on two different machines, the result:
#1
diff -u passwd.r15 passwd.local
--- passwd Rev. 15 (Fri Sep 13 10:35:32 2019)
+++ passwd Local version (Fri Apr 24 09:53:12 2020)
@@ -31,4 +31,6 @@ systemd-
uuidd:
_apt:x:
dhcpd:
-Debian-
+tcpdump:
+Debian-
+systemd-
#2
--- passwd Rev. 5 (Thu Feb 20 15:21:15 2020)
+++ passwd Local version (Wed Apr 29 17:28:58 2020)
@@ -31,6 +31,9 @@ postfix:
bacula:
mysql:
nagios:
-Debian-
elasticsearch:
str_alk_
+systemd-
+tcpdump:
+Debian-
+systemd-
Related branches
- Lucas Kanashiro (community): Approve
- Canonical Server: Pending requested
-
Diff: 44 lines (+12/-6)2 files modifieddebian/changelog (+6/-0)
debian/snmpd.postrm (+6/-6)
CVE References
Changed in net-snmp (Ubuntu Bionic): | |
status: | Confirmed → Triaged |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | removed: server-next |
Hi Dariusz, thanks for filing this bug report. While the UID/GID do indeed change, it seems to be that the ownership of files and directories is handled correctly, at least from the very simple testing I performed. Could you please state more explicitly what problem you are facing?
I'm setting the status of this report to Incomplete for the moment; please set it back to New after replying and we'll look at it again. Thanks!