歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 啟用Ubuntu掛載硬盤需要輸入密碼方法

啟用Ubuntu掛載硬盤需要輸入密碼方法

日期:2017/2/28 16:30:33   编辑:Linux教程

Ubuntu 10.04掛載硬盤時好像已經不再輸入密碼了,這樣安全性不夠高哦,如果想要在Ubuntu掛載硬盤需要輸入密碼的話。怎麼辦呢?

打開終端:

sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

裡面會有

[Mounting, checking, etc. of internal drives]
Identity=unix-group:admin
Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*
ResultActive=yes

[Change CPU Frequency scaling]
Identity=unix-group:admin
Action=org.gnome.cpufreqselector
ResultActive=yes

[Setting the clock]
Identity=unix-group:admin
Action=org.gnome.clockapplet.mechanism.*
ResultActive=yes

把最上面那段注解掉。變成

#[Mounting, checking, etc. of internal drives]
#Identity=unix-group:admin
#Action=org.freedesktop.udisks.filesystem-*;org.freedesktop.udisks.drive-ata-smart*
#ResultActive=yes

[Change CPU Frequency scaling]
Identity=unix-group:admin
Action=org.gnome.cpufreqselector
ResultActive=yes

[Setting the clock]
Identity=unix-group:admin
Action=org.gnome.clockapplet.mechanism.*
ResultActive=yes

這樣就可以在掛載時輸入密碼啦!

Copyright © Linux教程網 All Rights Reserved