LinuxEye - Linux系统教程

LinuxEye - Linux系统教程

当前位置: 主页 > Linux教程 >

关于debian挂载分区时出现:Not authorized to perform operati

时间:2015-06-24 13:11来源:未知 编辑:linuxeye 点击:
在更新到debian 8.0后。安装了lxde桌面管理器。 虽然很简洁,但还是喜欢xfce。 随后发现在Xfce下使用Thunar 挂载分区会出现:Not authorized to perform operation 错误。 网上搜罗了一番,找到此文

在更新到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管理器里面随便点击哪个分区,都能自动打开,还没挂载符号。

转载请保留固定链接: https://linuxeye.com/Linux/2646.html

------分隔线----------------------------
标签:Debian
栏目列表
推荐内容