arch-image-builder/configs/common/wheel-nopasswd.yaml
BigfootACA 067ee2d341 add more comments
Signed-off-by: BigfootACA <bigfoot@classfun.cn>
2024-05-20 09:56:42 +08:00

21 lines
469 B
YAML

# Users in wheel group can run root commands without password
filesystem:
files:
# polkit
- path: /etc/polkit-1/rules.d/99-wheel.rules
mode: 0640
content: |
polkit.addRule(function(action,subject){
if(subject.isInGroup("wheel"))
return polkit.Result.YES;
});
# sudo
- path: /etc/sudoers.d/wheel
mode: 0640
content: |
%wheel ALL=(ALL:ALL) NOPASSWD: ALL
# Ensure sudo is installed
pacman:
install:
- sudo