disable password in polkit
This commit is contained in:
parent
de665b5171
commit
805939bc44
2 changed files with 13 additions and 0 deletions
8
49-nopasswd_global.rules
Normal file
8
49-nopasswd_global.rules
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* Allow members of the wheel group to execute any actions
|
||||
* without password authentication, similar to "sudo NOPASSWD:"
|
||||
*/
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
|
@ -25,6 +25,11 @@ function main {
|
|||
sudo pacman -Rsn --noconfirm "$(pacman -Qqtd)"
|
||||
|
||||
|
||||
# === Admin privileges ==
|
||||
sudo usermod -a -G wheel anri
|
||||
curl -s ${repo}/polkitrules/49-nopasswd_global.rules > /etc/polkit-1/rules.d/49-nopasswd_global.rules
|
||||
|
||||
|
||||
# === Global OS configuration set-up ==
|
||||
curl ${repo}/meta.sh -s | bash -s -- ${repo}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue