debian: do not add user to sudo group, lock root account

The qubes-core-agent-passwordless-root package ships sudo configuration,
adding to sudo group isn't needed.

Basically revert all changes made by qubes-core-agent-passwordless-root
installation.

Fixes QubesOS/qubes-issues#4015
This commit is contained in:
Marek Marczykowski-Górecki 2018-09-02 07:05:06 +02:00
parent 09b192b2fe
commit 43fba4e94a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,9 @@ set -e
if [ "${1}" = "remove" ] ; then
gpasswd -d user sudo
if [ "$(passwd -S root|cut -f 2 -d ' ')" = "NP" ]; then
passwd -l root
fi
fi

View File

@ -35,7 +35,6 @@ set -e
if [ "$1" = "install" ] ; then
usermod -p '' root
usermod -a --groups sudo user
fi
# dh_installdeb will replace this with shell code automatically