Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/install-chroot.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/http/install-chroot.sh b/http/install-chroot.sh
index 28e4921..8cfb7d5 100644
--- a/http/install-chroot.sh
+++ b/http/install-chroot.sh
@@ -12,6 +12,15 @@ echo -e 'vagrant\nvagrant' | passwd
useradd -m -U vagrant
echo -e 'vagrant\nvagrant' | passwd vagrant
+# setting automatic authentication for any action requiring admin rights via Polkit
+cat <<EOF > /etc/polkit-1/rules.d/49-nopasswd_global.rules
+polkit.addRule(function(action, subject) {
+ if (subject.isInGroup("vagrant")) {
+ return polkit.Result.YES;
+ }
+});
+EOF
+
# setting sudo for vagrant user
cat <<EOF > /etc/sudoers.d/vagrant
Defaults:vagrant !requiretty