首页 > 代码库 > linux xfce4普通用户 mount usb提示: Not authorized to perform operation
linux xfce4普通用户 mount usb提示: Not authorized to perform operation
问题: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