How to Configure Linux to Ask for a Password when Mounting Partitions

Open up the terminal., Locate the fourth line of the document., Edit the fourth line., Save the edited document.

4 Steps 1 min read Easy

Step-by-Step Guide

  1. Step 1: Open up the terminal.

    This can be done by pressing Ctrl+Alt+T.

    Then copy-paste the following text into the terminal: gksu gedit /var/lib/polkit­1/localauthority/10­vendor.d/com.ubuntu.desktop.pkla.

    Then press ↵ Enter.

    If nothing shows up in the opened document, you will need to navigate to /var → lib → polkit-1 → localauthority → 10-vendor.d and open the com.ubuntu.desktop.pkla document with a text editor.

    You will most likely be required to enter your administrative password during this step.
  2. Step 2: Locate the fourth line of the document.

    This will be easier if you expand you window to the fullest.

    The forth line will look like ResultActive=yes. , Change the ResultActive=yes to ResultActive=auth_admin_keep. , Close the window, and when the text editor prompts, click Save.
  3. Step 3: Edit the fourth line.

  4. Step 4: Save the edited document.

Detailed Guide

This can be done by pressing Ctrl+Alt+T.

Then copy-paste the following text into the terminal: gksu gedit /var/lib/polkit­1/localauthority/10­vendor.d/com.ubuntu.desktop.pkla.

Then press ↵ Enter.

If nothing shows up in the opened document, you will need to navigate to /var → lib → polkit-1 → localauthority → 10-vendor.d and open the com.ubuntu.desktop.pkla document with a text editor.

You will most likely be required to enter your administrative password during this step.

This will be easier if you expand you window to the fullest.

The forth line will look like ResultActive=yes. , Change the ResultActive=yes to ResultActive=auth_admin_keep. , Close the window, and when the text editor prompts, click Save.

About the Author

A

Andrew Ramos

Enthusiastic about teaching practical skills techniques through clear, step-by-step guides.

32 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: