Package: sane-utils Version: 1.0.27-3.2 Severity: normal Tags: patch upstream
Hello,please remove the parameter "--no-create-home" from the shell script "postinst", so calibration (".cal") files can be saved in and used from the directory "/var/lib/saned/.sane/":
```bash $ vi "postinst" [...] # Create saned user/group if they do not exist if ! getent passwd | grep -q "^saned:"; then echo "Adding saned group and user..." adduser --home /var/lib/saned --quiet --system --group saned || true fi [...] ``` See "man 8 adduser". Removing the home directory might be necessary at this point as well: ```bash $ vi "postinst" else if id saned | grep -q "groups=.*\(scanner\)"; then deluser --quiet --remove-home saned scanner fi fi ``` See "man 8 deluser". Elaborated bug report: https://github.com/RPi-Distro/repo/issues/262 In the attachment you will find a patch file. Thank you! -Ramon -- System Information: Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster Architecture: armv7l Kernel: Linux 5.10.63-v7l+ (SMP w/4 CPU cores) Kernel taint flags: TAINT_CRAPLocale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages sane-utils depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.71 ii libavahi-client3 0.7-4+deb10u1 ii libavahi-common3 0.7-4+deb10u1 ii libc6 2.28-10+rpt2+rpi1 ii libieee1284-3 0.2.11-13 ii libjpeg62-turbo 1:1.5.2-2+deb10u1 ii libpng16-16 1.6.36-6 ii libsane 1.0.27-3.2 ii libsystemd0 241-7~deb10u8+rpi1 ii libusb-1.0-0 2:1.0.22-2 ii lsb-base 10.2019051400+rpi1 ii update-inetd 4.49 sane-utils recommends no packages. Versions of packages sane-utils suggests: ii avahi-daemon 0.7-4+deb10u1 pn unpaper <none> -- Configuration Files: /etc/sane.d/saned.conf changed: 192.168.1.0/24 -- debconf information: sane-utils/saned_scanner_group: true sane-utils/saned_run: false -- GPG public key: 5983 98DA 5F4D A464 38FD CF87 155B E264 13E6 99BF
--- postinst 2019-03-23 17:38:37.000000000 +0100 +++ postinst_create_remove_home_directory 2021-10-04 20:59:59.681629146 +0200 @@ -43,7 +43,7 @@ # Create saned user/group if they do not exist if ! getent passwd | grep -q "^saned:"; then echo "Adding saned group and user..." - adduser --home /var/lib/saned --quiet --system --no-create-home --group saned || true + adduser --home /var/lib/saned --quiet --system --group saned || true fi # Move home from /home/saned to /var/lib/saned (since 1.0.24-6) @@ -65,7 +65,7 @@ adduser --quiet saned scanner else if id saned | grep -q "groups=.*\(scanner\)"; then - deluser --quiet saned scanner + deluser --quiet --remove-home saned scanner fi fi
OpenPGP_signature
Description: OpenPGP digital signature