diff options
author | Eric Hameleers <alien@slackware.com> | 2020-12-28 14:33:25 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-12-28 14:33:25 +0100 |
commit | 488cf2ee19f53d30ed1a6e569b69f6c8e0ac32c3 (patch) | |
tree | 5f689eb499f1a2e11b839e0d1c29b6c1451d9f80 | |
parent | 43027af429653e602f553e5e6199044699d155c6 (diff) | |
download | liveslak-488cf2ee19f53d30ed1a6e569b69f6c8e0ac32c3.tar.gz liveslak-488cf2ee19f53d30ed1a6e569b69f6c8e0ac32c3.tar.xz |
Attempt to let polkit treat 'wheel' group members as admins
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 <<EOT > ${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: |