星空网 > 软件开发 > 操作系统

Linux Systemd 挂载问题解决

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;  }});

Replace wheel by any group of your preference.

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 (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流