[debian-edu-commits] debian-edu/pkg-team/ 68/159: Revert "Do not use xrdp user"

Dominik George natureshadow-guest at moszumanska.debian.org
Tue Feb 23 10:04:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository xrdp.

commit 6325612e59fe10841c1c4daa45c5afbc93745dfe
Author: mirabilos <tg at mirbsd.org>
Date:   Wed Aug 26 18:41:01 2015 +0200

    Revert "Do not use xrdp user"
    
    At the very least, we’ll have to clean this up from previous
    packages even if we don’t create our own, so there’s no harm
    in creating one of our own anyway, even if we don’t current‐
    ly use it ourselves.
    
    This reverts commit afde0d8114a73b0932a061d9093792a12e1dbb02.
---
 xrdp.postinst | 5 +++++
 xrdp.postrm   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/xrdp.postinst b/xrdp.postinst
index dea9f16..0e63d25 100644
--- a/xrdp.postinst
+++ b/xrdp.postinst
@@ -24,6 +24,11 @@ set -e
 
 case $1 in
 configure)
+	getent passwd xrdp >/dev/null 2>&1 || adduser \
+	    --quiet --system --group --no-create-home \
+	    --disabled-password --disabled-login \
+	    --home /var/run/xrdp xrdp
+
 	if dpkg --compare-versions "$2" lt '0.4.0~dfsg-7'; then
 		rm -f /etc/xrdp/rsakeys.ini
 	fi
diff --git a/xrdp.postrm b/xrdp.postrm
index 6833a84..77ffb77 100644
--- a/xrdp.postrm
+++ b/xrdp.postrm
@@ -28,6 +28,9 @@ remove)
 purge)
 	rm -rf /etc/xrdp /var/run/xrdp
 	rm -f /var/log/xrdp.log /var/log/xrdp-sesman.log
+
+	(deluser --system --quiet xrdp || :)
+	(delgroup --system --quiet xrdp || :)
 	;;
 
 upgrade|disappear|failed-upgrade|abort-install|abort-upgrade)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/xrdp.git



More information about the debian-edu-commits mailing list