+ -
当前位置:首页 → 问答吧 → u盘不能用普通用户挂载(已解决)

u盘不能用普通用户挂载(已解决)

时间:2010-01-18

来源:互联网

有很长一段时间了,因为不太用u盘,也就没想着费时间去解决。

目前的情况是u盘插上后,在thunar的左侧树会出现u盘的选择节点。但点击该选择节点,会提示如下:

Failed to mount "Removable Volume".

Rejected send message, 1 matched rules; type="method_call", sender=":1.30" (uid=1003 pid=11346 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=4294 comm="/usr/sbin/hald)).


我用的是xfce桌面。

作者: channon   发布时间: 2010-01-18

看一下udev规则文件吧

作者: 糊涂   发布时间: 2010-01-18

试试看ck-launch-session xfce4-session

作者: jarryson   发布时间: 2010-01-27

见我问的这帖,现象和你一样:
http://www.linuxsir.org/bbs/thread362779.html

作者: liwangli   发布时间: 2010-01-27

感谢,问题解决了。

作者: channon   发布时间: 2010-01-27

今天更新xorg之后,又不能挂载u盘了,信息如下:

Rejected send message, 1 matched rules; type="method_call", sender=":1.43" (uid=1003 pid=10414 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=3971 comm="/usr/sbin/hald)).

作者: channon   发布时间: 2010-03-09

把解决方法写在这里,下次不用再找了。

修改/etc/dbus-1/system.d/hal.conf

<policy context="default">
...
//添加此段
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Volume"/>
...
</policy>

作者: channon   发布时间: 2010-03-09

都使用udisks,gio之后就没有这个问题了

作者: jarryson   发布时间: 2010-03-09

为什么要改 default 呢?我把用户加入 storage 组,再改。
代码:
 <policy group="storage">
 <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
 <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>

作者: ch_fb   发布时间: 2010-03-09

引用:
作者: ch_fb
为什么要改 default 呢?我把用户加入 storage 组,再改。
代码:
 <policy group="storage">
 <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
 <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>
谢谢,你的办法更好。

作者: channon   发布时间: 2010-03-09