百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> debian挂载分区 Not authorized to perform operati 错误解决方
分享文章到:

debian挂载分区 Not authorized to perform operati 错误解决方

发布时间:01/15 来源: 浏览: 关键词:
最近更新了debian后,使用 Thunar 挂载分区会出现 Not authorized to perform operation 错误,后来修改了系统对应的文件的action后成功解决问题。

本文我们来分享一个解决 debian挂载分区出现 Not authorized to perform operati 错误的解决办法。在更新到debian 8.0后。安装了lxde桌面管理器。

虽然很简洁,但还是喜欢xfce。

随后发现在Xfce下使用Thunar 挂载分区会出现:Not authorized to perform operation 错误。

里面提到:

检查文件/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy, 确保你拥有:
Mount a filesystem
Authentication is required to mount the filesystem

auth_admin
auth_admin
yes

我打开我系统对应文件,里面有很多action。

在每个action下最后几行为:

<action>
*********此处略去若干*************
   <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
</action>

最主要的是

<allow_active>yes</allow_active>

其他有些action里面是

<allow_active>auth_admin</allow_active>

并且,每个action的头不一样。

我更改了几个,比如将

<action id="org.freedesktop.udisks2.filesystem-unmount-others">

下的

<allow_active>auth_admin</allow_active>

更改为

<allow_active>yes</allow_active>

现在在thunar管理器里面随便点击哪个分区,都能自动打开,还没挂载符号。

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有4人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板