KDE 下 U 盤掛載失敗

重裝完 KDE 後發如今 dolphin 中沒法掛載 U 盤了,提示 unable to authenticate。可是用 udisksctl 卻能夠掛載:java

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 裏面的配置文件給改了:sql

<?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 盤就能夠用了,本身的機器,應該沒什麼問題。安全

相關文章
相關標籤/搜索