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

在更新到debian 8.0后。安装了lxde桌面管理器。

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

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

网上搜罗了一番,找到此文: http://intijk.com/notes/linux-%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/not-authorized-to-perform-operation.html

里面提到:

检查文件/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://my.oschina.net/skyoojaa/blog/469993

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值