tamir_polkit_yetki.sh 215 B

12345678910
  1. #!/bin/sh
  2. mkdir -p /etc/polkit-1/rules.d/
  3. echo '
  4. polkit.addRule(function(action, subject) {
  5. if (subject.isInGroup ("wheel")) {
  6. return polkit.Result.YES;
  7. }
  8. });
  9. ' > /etc/polkit-1/rules.d/10-wheels.rules