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 盘就能够用了,本身的机器,应该没什么问题。安全