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 盘就可以用了,自己的机器,应该没什么问题。

  • 相关阅读:
    纯JS实现俄罗斯方块,打造属于你的游戏帝国
    Java 集合框架
    项目(1-2)ES32获取mpu9250传入数据库
    项目(1-1)ES32获取mpu9250数据网页交互显示
    开发(三)ESP32 硬件配置
    开发(二) ardunio批量固件上传地址
    项目(1-1)人脸识别
    海康相机开发(1) SDK安装和开发
    ARDUNIO IMU processing姿态数据可视化
    ESP8266 tcp透传AP+STA
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3402939.html
Copyright © 2011-2022 走看看