This commit is contained in:
Patrick Schleizer 2019-12-10 03:53:10 -05:00
parent 7d8001ddc9
commit 88bea2a6ef
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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