Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In earlier Ubuntu releases (As far as I remember Natty had it) we were asked for password while trying to mount the drive using Nautilus. But in Ubuntu 12.04 (also in 11.10) it is removed. But I want to re-enable that feature.

Question is: How can I re-enable that feature i.e being asked for mounting drive?

share|improve this question
    
An easy workaround is to just encrypt the drive(s). I have multiple extra drives, internal and external. All are encrypted. If a drive fails or I give it away I don't need to worry about my data ever being recovered. (I don't think this is exactly what you are asking for so posting as a comment...) –  Tom Brossman Sep 26 '12 at 20:01
    
I'm not very concerned with the data. I was just wanted to enable that feature. I can disable mounting of some drive from a user, to whom I've given my computer for a while. thank you for the comment. I may need that too. –  Anwar Shah Sep 26 '12 at 20:07

1 Answer 1

up vote 4 down vote accepted

To re-enable that feature, you have to change the default policy. Follow this procedure:

  1. Open terminal with Ctrl-Alt-T keyboard shortcut.

  2. Type the command below ( you can copy and paste at the terminal ) and hit Enter.

    gksu gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
    
  3. In the first section, under the heading of [Mounting, checking, etc. of internal drives] There will be a line with ResultActive=yes. Change the yes to auth_admin. The section after modification will look like this

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

    Save the file by pressing Ctrl-S and Exit gedit.

The feature is now activated.

share|improve this answer
    
@nitstorm Thanks for the edit. That was crucial –  Anwar Shah Sep 26 '12 at 19:33
    
Most welcome :) –  nitstorm Sep 26 '12 at 19:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.