星期六, 7月 04, 2009

CD/DVD Cannot Mount Volume

當用 root 登入時可以 automount CD,但用普通 user 登入時就不可以,還出現以下的 error window

Cannot Mount Volume
"Mount failed for /org/freedesktop/Hal/devices/volume_label_NEW org.freedesktop.DBus.Error.AccessDenied : A security policy ..."

解決方法是要把 user 如以下的加入 /etc/dbus-1/system.d/hal.conf 內;
<policy user="xxxxxx">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
<allow send_interface="org.freedesktop.Hal.Device.VideoAdapterPM"/>
<allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume"/>
<allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
</policy>

沒有留言: