歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 關於debian掛載分區時出現:Not authorized to perform operati

關於debian掛載分區時出現:Not authorized to perform operati

日期:2017/2/27 15:48:30   编辑:Linux教程

在更新到debian 8.0後。安裝了lxde桌面管理器。

雖然很簡潔,但還是喜歡xfce。

隨後發現在Xfce下使用Thunar 掛載分區會出現:Not authorized to perform operation 錯誤。

裡面提到:

檢查文件/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy, 確保你擁有:
Mount a filesystem
Authentication is required to mount the filesystem

auth_admin
auth_admin
yes

我打開我系統對應文件,裡面有很多action。

在每個action下最後幾行為:

<action>
*********此處略去若干*************
   <defaults>
      <allow_any>auth_admin</allow_any>
      <allow_inactive>auth_admin</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
</action>

最主要的是

<allow_active>yes</allow_active>

其他有些action裡面是

<allow_active>auth_admin</allow_active>

並且,每個action的頭不一樣。

我更改了幾個,比如將

<action id="org.freedesktop.udisks2.filesystem-unmount-others">

下的

<allow_active>auth_admin</allow_active>

更改為

<allow_active>yes</allow_active>

現在在thunar管理器裡面隨便點擊哪個分區,都能自動打開,還沒掛載符號。

Copyright © Linux教程網 All Rights Reserved