zoukankan      html  css  js  c++  java
  • 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 盘就可以用了,自己的机器,应该没什么问题。

  • 相关阅读:
    python学习笔记3:基础(元组、字符串、列表、字典)
    python学习笔记2:基础(邮件发送)
    pycharm版本控制
    Pycharm版本控制之本地Git用法
    GitHub使用
    qtp简单说明
    查询Activity方便一点的方法
    appium基础框架
    loadrunner基本流程
    python下的unittest框架
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3402939.html
Copyright © 2011-2022 走看看