Package: snmpd Version: 5.9.3+dfsg-2 Severity: normal Tags: patch Dear Maintainer,
chown user.group is an ancient BSD remnant, and also invalid, since, naturally, usernames can have dots in them (coreutils really ought to start warning on this nonstandard usage). Attaching patch based on current Salsa HEAD (e2da187de2da19a4aa8e9520) to turn the one usage into correct user:group. Best, наб -- System Information: Debian Release: 11.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-20-amd64 (SMP w/24 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages snmpd depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.77 ii init-system-helpers 1.60 ii libc6 2.31-13+deb11u5 ii libsnmp-base 5.9+dfsg-4+deb11u1 ii libsnmp40 5.9+dfsg-4+deb11u1 ii lsb-base 11.1.0 snmpd recommends no packages. Versions of packages snmpd suggests: pn snmptrapd <none> -- Configuration Files: /etc/snmp/snmpd.conf [Errno 13] Permission denied: '/etc/snmp/snmpd.conf' -- debconf information excluded
From 6f657dbc5a1bcdaab4000eea628f4561a5228f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= <nabijaczlew...@nabijaczleweli.xyz> Date: Wed, 1 Mar 2023 14:54:47 +0100 Subject: [PATCH] snmpd.postinst: use legal chown syntax X-Mutt-PGP: OS --- debian/snmpd.postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/snmpd.postinst b/debian/snmpd.postinst index 51b949f..e73f4c4 100644 --- a/debian/snmpd.postinst +++ b/debian/snmpd.postinst @@ -19,9 +19,9 @@ case "$1" in --shell "$SNMP_SHELL" --force-badname "$SNMP_USER" # care if SNMP_DIR is used by previous "snmp" user - chown "$SNMP_USER"."$SNMP_GROUP" "$SNMP_DIR" + chown "$SNMP_USER":"$SNMP_GROUP" "$SNMP_DIR" if [ -f "$SNMP_DIR/snmpd.conf" ]; then - chown "$SNMP_USER"."$SNMP_GROUP" "$SNMP_DIR/snmpd.conf" + chown "$SNMP_USER":"$SNMP_GROUP" "$SNMP_DIR/snmpd.conf" fi # Change group of snmpd.conf to SNMP_GROUP #998152 -- 2.30.2
signature.asc
Description: PGP signature