总感觉不太稳妥的样子,但至少暂时解决问题了。创建了一个规则: /etc/polkit-1/rules.d/10-udisks2.rules
// Allow udisks2 to mount devices without authentication
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.filesystem-mount" ||
action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") {
return polkit.Result.YES;
}
});
离线