I have to enter my password to access my second hard drive

Asked by Bob Pearson

In previous versions of Ubuntu I have been able to access my second hard drive when I mount it without having to enter my password. After upgrading to Karmic I have to enter my password every time. This is really annoying, especially as we use this drive for backing up important data from all the machines on our local network. Is there anyway I can mount it without having to enter my password?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
Carlos Andrés Zambrano (czam)
Solved:
Last query:
Last reply:
Revision history for this message
Martin Eve (martineve) said :
#1

If you add the "user" option to the entry in fstab then you should be able to fix this.

In a command prompt, run:

nano /etc/fstab

Find the line that corresponds to your second hard disk and change the line so it reads something like this:

/dev/hdc /media/mymountpoint ext3 user,errors=remount-ro 0 0

Your line will be different (particularly at the start), but this means the drive should be mounted automatically.

If you don't want it auto, but want to be able to mount without sudo password:

/dev/hdc /media/mymountpoint ext3 noauto,user,errors=remount-ro 0 0

Then, in nano press ctrl+x, then "y", then enter.

Revision history for this message
Best Carlos Andrés Zambrano (czam) (carlos.zambrano) said :
#2

Open a terminal and paste the following line:
sudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy

With Gedit search for a line as the next one:
<action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">

At the bottom of the next line,
<allow_active>auth_admin_keep</allow_active>

Replace the words in bold for a yes:
http://i34.tinypic.com/15wme6a.png

CarlosZ(czam)

Revision history for this message
Bob Pearson (admin-bpcsbromyard) said :
#3

Thanks Carlos Andrés Zambrano Barrera, that solved my question.