From 88bea2a6efa8823739ba65b2f5b67cb90071ca3f Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Tue, 10 Dec 2019 03:53:10 -0500 Subject: [PATCH] comment --- debian/security-misc.preinst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst index d0f0b7c..2c0c579 100644 --- a/debian/security-misc.preinst +++ b/debian/security-misc.preinst @@ -24,6 +24,16 @@ user_groups_modifications() { ## /usr/share/pam-configs/wheel-security-misc addgroup root sudo + ## Useful to create groups in preinst rather than postinst. + ## Otherwise if a user saw an error message such as this: + ## + ## /var/lib/dpkg/tmp.ci/preinst: ERROR: No user is a member of group 'console'. Installation aborted. + ## /var/lib/dpkg/tmp.ci/preinst: ERROR: You probably want to run: + ## sudo adduser user console + ## + ## Then the user could not run 'sudo adduser user console' but also would + ## have to create the groups himself. + ## Related to Console Lockdown. ## /usr/share/pam-configs/console-lockdown-security-misc ## /etc/security/access-security-misc.conf