Create the following file as root: /etc/polkit-1/rules.d/49-nopasswd_global.rules/* Allow members of the wheel group to execute any actions ...
Create the following file as root:
/etc/polkit-1/rules.d/49-nopasswd_global.rules/* 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; }});
This will result in automatic authentication for any action requiring admin rights via Polkit. As such, be careful with the group you choose to give such rights to.
网址:https://wiki.archlinux.org/index.php/Polkit#Mounting_storage_without_password
原标题:Linux Systemd 挂载问题解决
关键词:linux
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。