Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Can't mount secondary drive without authentication

  1. #1
    Join Date
    Apr 2007
    Beans
    27

    Can't mount secondary drive without authentication

    Hi,

    I'm using ubuntu 9.10 karmic final release and I have to always authenticate (using password) everytime I boot up and try to mount my other hard drive partitions.

    Do you know how to get rid of this?

  2. #2
    Join Date
    Jun 2007
    Beans
    17,132

    Re: Can't mount secondary drive without authentication

    If you're referring to a partition(s) that isn't automounted at boot (fstab entry) then there is a easy workaround till a means is provided to set.

    Code:
    gksudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy
    In the 2nd section replace the blue as shown. (just replace, don't mess with formatting

    orig
    Code:
    <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
        <description>Mount a system-internal device</description>
        <description xml:lang="da">Montér en intern enhed</description>
        <description xml:lang="de">Eingebautes Gerät einhängen</description>
        <message>Authentication is required to mount the device</message>
        <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
        <message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>auth_admin_keep</allow_active>
        </defaults>
      </action>
    edited
    Code:
     <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
        <description>Mount a system-internal device</description>
        <description xml:lang="da">Montér en intern enhed</description>
        <description xml:lang="de">Eingebautes Gerät einhängen</description>
        <message>Authentication is required to mount the device</message>
        <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
        <message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>yes</allow_active>
        </defaults>
      </action>
    you then should be able to mount from 'places' without password

    some edits in post 5 you should glance at.

    http://ubuntuforums.org/showthread.php?t=1299820

  3. #3
    Join Date
    Apr 2007
    Beans
    27

    Re: Can't mount secondary drive without authentication

    Thanks mate!

    Works perfectly.
    Just wish ubuntu made it like this in the first place

  4. #4
    Join Date
    Oct 2009
    Location
    Kerala
    Beans
    0
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Can't mount secondary drive without authentication

    Quote Originally Posted by mc4man View Post
    If you're referring to a partition(s) that isn't automounted at boot (fstab entry) then there is a easy workaround till a means is provided to set.

    Code:
    gksudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy
    In the 2nd section replace the blue as shown. (just replace, don't mess with formatting

    orig
    Code:
    <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
        <description>Mount a system-internal device</description>
        <description xml:lang="da">Montér en intern enhed</description>
        <description xml:lang="de">Eingebautes Gerät einhängen</description>
        <message>Authentication is required to mount the device</message>
        <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
        <message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>auth_admin_keep</allow_active>
        </defaults>
      </action>
    edited
    Code:
     <action id="org.freedesktop.devicekit.disks.filesystem-mount-system-internal">
        <description>Mount a system-internal device</description>
        <description xml:lang="da">Montér en intern enhed</description>
        <description xml:lang="de">Eingebautes Gerät einhängen</description>
        <message>Authentication is required to mount the device</message>
        <message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
        <message xml:lang="de">Zugriffsrechte werden benötigt um das Gerät einzuhängen</message>
        <defaults>
          <allow_any>no</allow_any>
          <allow_inactive>no</allow_inactive>
          <allow_active>yes</allow_active>
        </defaults>
      </action>
    you then should be able to mount from 'places' without password

    some edits in post 5 you should glance at.

    http://ubuntuforums.org/showthread.php?t=1299820
    Hi Thanks... This solved my problem too... working fine......

  5. #5
    Join Date
    Nov 2009
    Location
    uk
    Beans
    3
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't mount secondary drive without authentication

    thanks thats another one of those irritations sorted out

  6. #6
    Join Date
    Apr 2006
    Location
    Hyderabad, India
    Beans
    6
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't mount secondary drive without authentication

    Thanks

  7. #7
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Can't mount secondary drive without authentication

    --
    Last edited by stinkeye; November 8th, 2009 at 08:42 AM.

  8. #8
    Join Date
    Nov 2009
    Beans
    1
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Can't mount secondary drive without authentication

    Thanks for the info I got it sorted now.

    Btw, if I change all the "auth_admin_keep" to "yes", will that be harmful? It's a regular desktop home computer so I take it there won't be many security risks?

  9. #9
    Join Date
    Nov 2009
    Beans
    1

    Re: Can't mount secondary drive without authentication

    Thanks.
    I am new to ubuntu and found this really helpful.
    Last edited by kabra.anuj; November 25th, 2009 at 12:01 PM. Reason: to see if my profile picture come up as i ve set it now..:)

  10. #10
    Join Date
    Nov 2008
    Beans
    3

    Re: Can't mount secondary drive without authentication

    Thanks! Solved the xubuntu 9.10 gigolo mount problem!

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •