From 488cf2ee19f53d30ed1a6e569b69f6c8e0ac32c3 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 28 Dec 2020 14:33:25 +0100 Subject: Attempt to let polkit treat 'wheel' group members as admins --- make_slackware_live.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/make_slackware_live.sh b/make_slackware_live.sh index 8005575..85d7c3c 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1938,6 +1938,14 @@ echo "-- Configuring the X base system." # Reduce the number of local consoles, two should be enough: sed -i -e '/^c3\|^c4\|^c5\|^c6/s/^/# /' ${LIVE_ROOTDIR}/etc/inittab +# Also treat members of the 'wheel' group as admins next to root: +mkdir -p ${LIVE_ROOTDIR}/etc/polkit-1/rules.d +cat < ${LIVE_ROOTDIR}/etc/polkit-1/rules.d/10-wheel-admin.rules +polkit.addAdminRule(function(action, subject) { + return ["unix-group:wheel"]; +}); +EOT + # Give the 'live' user a face: if [ -f "${LIVE_TOOLDIR}/media/${LIVEDE,,}/icons/default.png" ]; then # Use custom face icon if available for the Live variant: -- cgit v1.2.3