debian挂载分区 Not authorized to perform operati 错误解决方
本文我们来分享一个解决 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管理器里面随便点击哪个分区,都能自动打开,还没挂载符号。