Ubuntu9.10 Nautilus解決掛載磁區要輸入密碼麻煩的動作

Ubuntu9.04之前要掛載磁區的話在磁碟上面點下去就可以馬上把磁碟掛上去,但是9.10多了要打入密碼的麻煩動作,今天才找到解決方法。

首先

1
gksudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy

之後找到

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
    <description>Mount a system-internal device</description>
    <description xml:lang="da">Montér en intern enhed</description>
    <description xml:lang="de">Eingebautes Gerät einhängen</description>
    <message>Authentication is required to mount the device</message>
    <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
    <message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen</message>
    <defaults>
      <allow_any>no</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>auth_admin_keep</allow_active>
    </defaults>
  </action>

1
<allow_active>auth_admin_keep</allow_active>

改成

1
<allow_active>yes</allow_active>

這樣要掛載磁區就不用在輸入密碼了

Mon Dec. 14 2009
Comments

Comments