Package: sash Version: 3.8-3+b1 Severity: normal --- Please enter the report below this line. ---
Attempting to switch to the AMD64 from the i586 package, which involves
removing the old package, I encountered the followoing bug:
"sash.prerm" will always fail, preventing the package from being
deinstalled.
Reason:
"userdel" is called to remove the additional "root" user "sashroot".
This checks whether the UID of the user to be removed, "0" in this
case, is still in use by a process, then finds PID 1 (init), hence
refuses to remove "sashroot".
I suggest to remove "sashroot" from "/etc/passwd" and "/etc/shadow" by
other means. Calling "userdel -rf sashroot" instead to force the
removal is definitely no option, because the real "root" account always
must remain in place, sharing the same home directory and mail spool,
which would be forcibly removed according to "man userdel".
-8<------------------------------------------------
#!/bin/sh
# prerm for sash
# make sure that accounts using sash will
# at least continue to work after sash is removed...
set -e
if [ "$1" = remove ]; then
if [ "$(getent passwd | grep ^sashroot:)" != "" ]; then
userdel sashroot
fi
for sashacct in $(getent passwd | \
awk -F: '{if ($7 == "/bin/sash") {print $1}}'); do
chsh -s /bin/bash $sashacct || true
done
fi
exit 0
-8<------------------------------------------------
I solved my problem temporarily by commenting out the 3 lines to
check for and remove the user account, because the new package would
re-install the line anyway.
Regards, Christoph
--- System information. ---
Architecture: i386/x68_64 multiarch
Kernel: Linux 3.14-1-amd64
Debian Release: 8.0
signature.asc
Description: PGP signature

