Ubuntu 10.04 doesn’t ask password any more when mounting Windows partitions via Place menu or nautilus file browser.But if the computer is not for personal use,you may want to add a password to protect private information.

Open a terminal window (Applications->Accessories->Terminal),run this command and enter password to get super user privilege:

sudo -i

edit this file: “/var/lib/polkit-1/localauthority/10-vendor.d/com.Ubuntu.desktop.pkla”(without the quotes):

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

add “#”at the start of first 4 lines,make it looks like:

#[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

Now,close and save the file.When you click to mount a ntfs partition in file browser,or click Places ->… you will get following window to type password: