Package: sysklogd
Version: 1.5-5
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu karmic ubuntu-patch
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/postrm: Don't delete the syslog user upon purge. LP: #401056
We thought you might be interested in doing the same. The rationale for us was
that we are transitioning from sysklogd to rsyslog as the default logger and
are using the same user for both. Trying to delete the user when purging
sysklogd causes some errors as noted in the Launchpad bug mentioned above.
For Debian, even though rsyslog doesn't use the syslog user (it runs as root),
I still think it makes sense to leave the user around. There will still be
files owned by that user in /var/log that will become unowned. Potentially by
a different user created later. I don't believe it is a requirement to remove
users created by a package when purging.
-- System Information:
Debian Release: squeeze/sid
APT prefers karmic-updates
APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-10-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u sysklogd-1.5/debian/postrm sysklogd-1.5/debian/postrm
--- sysklogd-1.5/debian/postrm
+++ sysklogd-1.5/debian/postrm
@@ -5,5 +5,4 @@
if [ "$1" = "purge" ]
then
- deluser --system --quiet syslog
update-rc.d sysklogd remove >/dev/null
fi