KDE 下 U 盘挂载失败

重装完 KDE 后发现在 dolphin 中无法挂载 U 盘了,提示 unable to authenticate。但是用 udisksctl 却可以挂载:

yyc@TDesk run > udisksctl mount -b /dev/sdc1
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-other-seat ===
挂载 Generic Mass-Storage (/dev/sdc1) 需要身份验证
Authenticating as: root
password:
==== AUTHENTICATION COMPLETE ===
Mounted /dev/sdc1 at /run/media/yyc/3139-3239.

然后,狠狠心,直接把 udisk 安装到 polkit 里面的配置文件给改了:

<?xml version="1.0" encoding="utf-8"?>
<action id="org.freedesktop.udisks2.filesystem-mount-other-seat">
    <description>Mount a filesystem from a device plugged into another seat</description>
    <description xml:lang="zh_CN">挂载插入另一槽位设备上的文件系统</description>
    <message>Authentication is required to mount the filesystem</message>
    <message xml:lang="zh_CN">挂载文件系统需要身份验证</message>
    <defaults>
        <allow_any>yes</allow_any>
        <allow_inactive>yes</allow_inactive>
        <allow_active>yes</allow_active>
    </defaults>
</action>

然后虽然有安全隐患,但 U 盘就可以用了,自己的机器,应该没什么问题。

posted @ 2013-11-01 22:16  英超  Views(667)  Comments(0Edit  收藏  举报