码迷,mamicode.com
首页 > 系统相关 > 详细

linux xfce4普通用户 mount usb提示: Not authorized to perform operation

时间:2016-09-28 09:47:15      阅读:282      评论:0      收藏:0      [点我收藏+]

标签:

问题:xfce4下,USB 硬盘能自动挂载并显示,但是普通用户操作时,提示:Not authorized to perform operation。

时间:20160928

os:gentoo + xfce4 + openrc

解决方法:

cd /usr/share/polkit-1/actions

nano *.udisks*.*

把相应权限都改成Yes即可.

  <action id="org.freedesktop.udisks2.filesystem-mount">
    <description>Mount a filesystem</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_any>auth_admin</allow_any>*/
      <allow_inactive>yes</allow_inactive>/*修改这里,原来是<allow_inactive>auth_admin</allow_inactive>*/
      <allow_active>yes</allow_active>
    </defaults>
  </action>

linux xfce4普通用户 mount usb提示: Not authorized to perform operation

标签:

原文地址:http://www.cnblogs.com/rb258/p/5915070.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!