Results 1 to 2 of 2

Thread: Require password to mount external drives

  1. #1
    Join Date
    Feb 2008
    Beans
    35

    Require password to mount external drives

    Is there a way in Lucid to require a sudo password to mount all external drives (e.g. thumb drives, USB CD/DVD drives, USB hard drives)?

    Thanks,
    allaboutsam

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Require password to mount external drives

    You have to overwrite the default policykit settings. Create a .pkla file in /var/lib/polkit-1/localauthority/50-local.d/.

    i.e.
    /var/lib/polkit-1/localauthority/50-local.d/external.drives.pkla:
    Code:
    [Mounting, ejecting of external drives]
    Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach
    ResultActive=auth_admin_keep
    Check out:
    Code:
    man pklocalauthority

Tags for this Thread

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
  •