+sash (3.8-4) unstable; urgency=medium
+
+ * Add debconf warning about sashroot user instead of trying to remove
+ it, since userdel is unable to properly delete it. Closes: #783031
+
+ -- Tollef Fog Heen <tfheen@debian.org> Sun, 16 Jul 2017 19:13:30 +0200
+
sash (3.8-3) unstable; urgency=medium
* Drop support for adosfs, mfs on FreeBSD.
Build-Depends: zlib1g-dev (>= 1:1.2.2-7), debhelper (>= 9),
e2fslibs-dev [!kfreebsd-amd64 !kfreebsd-i386],
kfreebsd-kernel-headers [kfreebsd-amd64 kfreebsd-i386],
- dctrl-tools
+ dctrl-tools, po-debconf
Package: sash
Architecture: any
--- /dev/null
+[type: gettext/rfc822deb] templates
--- /dev/null
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the sash package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: sash\n"
+"Report-Msgid-Bugs-To: sash@packages.debian.org\n"
+"POT-Creation-Date: 2017-07-16 19:14+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid "sashroot user detected"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid ""
+"Previous versions of sash offered to create a root user with shell set to /"
+"bin/sash. This system has such a user."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:1001
+msgid ""
+"This can unfortunately not be automatically removed together with the "
+"package, so you need to manually delete the sashroot user."
+msgstr ""
# at least continue to work after sash is removed...
set -e
+. /usr/share/debconf/confmodule
if [ "$1" = remove ]; then
- if [ "$(getent passwd | grep ^sashroot:)" != "" ]; then
- userdel sashroot
+ if getent passwd | grep -qs ^sashroot: ; then
+ db_input high sash/sashroot-user-detected || true
+ db_go || true
fi
for sashacct in $(getent passwd | \
awk -F: '{if ($7 == "/bin/sash") {print $1}}'); do
--- /dev/null
+Template: sash/sashroot-user-detected
+Type: error
+_Description: sashroot user detected
+ Previous versions of sash offered to create a root user with shell
+ set to /bin/sash. This system has such a user.
+ .
+ This can unfortunately not be automatically removed together with the
+ package, so you need to manually delete the sashroot user.