diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-08-26 09:42:02 +0100 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-08-26 09:42:02 +0100 |
commit | 92489ae6790721086bbe96867a2cd5c04dba0e25 (patch) | |
tree | cce18134e005e63eb734e957982a15971d6c6d7d | |
parent | e33a9e9d6427843c510feb9d042b7095b5fc4a42 (diff) | |
download | lightdm-92489ae6790721086bbe96867a2cd5c04dba0e25.tar.gz |
* debian/lightdm.postrm:
- Don't remove the lightdm user/group on package removal. This fails if the
user is still in use and leaves the risk of another user being created
with the same UID. (LP: #924224)
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | debian/lightdm.postrm | 15 |
2 files changed, 9 insertions, 15 deletions
diff --git a/debian/changelog b/debian/changelog index 88c07186..6c302bdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +lightdm (1.15.3-0ubuntu3) wily; urgency=medium + + * debian/lightdm.postrm: + - Don't remove the lightdm user/group on package removal. This fails if the + user is still in use and leaves the risk of another user being created + with the same UID. (LP: #924224) + + -- Robert Ancell <robert.ancell@canonical.com> Wed, 26 Aug 2015 09:35:56 +0100 + lightdm (1.15.3-0ubuntu2) wily; urgency=medium * debian/lightdm.lightdm-greeter.pam: diff --git a/debian/lightdm.postrm b/debian/lightdm.postrm index d640376b..b3eca03b 100644 --- a/debian/lightdm.postrm +++ b/debian/lightdm.postrm @@ -23,21 +23,6 @@ if [ "$1" = "purge" ] ; then rm -r /var/run/lightdm/authority fi - if getent passwd lightdm >/dev/null; then - if [ -x /usr/sbin/deluser ]; then - deluser --system lightdm - fi - fi - - if getent group lightdm >/dev/null; then - if [ -x /usr/sbin/delgroup ]; then - delgroup --system lightdm - fi - fi - - # we cannot use the --remove-home option when we delete the user above - # because it will refuse to remove things in /var, so clean it up this - # way if [ -d /var/lib/lightdm ]; then rm -r /var/lib/lightdm fi |