• Not authorized to perform operation.


    状况 所有需要权限的弹窗都不弹出了。

    后来想起来我取消了 polkit 启动项 新建用户 能弹出权限。 问题解决

    当你在图形界面里点击硬盘的盘符,希望挂载一个分区的时候,可能会遇到
    ‘Not authorized to perform operation.’ 的问题,权限不够,无法mount该分区。解决方法是下面几步

    检查 /etc/group 查看自己是否在storage用户组里。-----未能在网上搜到storage 用户组信息
    创建文件/etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla写入内容

    [storage group mount override]
    Identity=unix-group:storage
    Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-system
    ResultAny=yes
    ResultInactive=yes
    ResultActive=yes
    

    检查文件/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy, 确保你拥有:

    Mount a filesystem
    Authentication is required to mount the filesystem
    
    auth_admin
    auth_admin
    yes
    
    其中最关键的是这行
    
    yes
    

    窗口管理器用polkit来管理权限,当你请求挂载分区的时候,polkit会搜索step 2中的配置文件,根据Action参数来查找应该采用什么样的动作,然后在step 3的配置文件中找到改动作和对应的权限配置,如果权限无误则执行改动作.

    转载请保留固定链接: https://linuxeye.com/Linux/2647.html header
  • 相关阅读:
    正则表达式 之领宽断言
    bat(续七)-for语句(循环结构)
    RBAC权限管理
    Redis缓存服务搭建及实现数据读写
    Myeclipse集成Maven(图文说明)
    实习第四周
    POJ 3461 Oulipo KMP算法题解
    原创文章
    apue和unp的学习之旅07——多种边界条件的讨论
    单链表的实现
  • 原文地址:https://www.cnblogs.com/marklove/p/16314294.html
Copyright © 2020-2023  润新知