Ask Your Question

Mount NTFS partition on-demand without password?

asked 2012-04-15 16:04:07 -0500

kparal gravatar image

I have dual boot Fedora 17 Beta and Windows. I want to be able to mount the NTFS partition in Nautilus on demand, without providing root password. I don't want to have it mounted automatically after system boot.

Currently Nautilus asks me for root password. I tried to play with /etc/fstab, but then found this:

ntfs-3g binary in Fedora is not set-uid root, I don't intend to change that.

What are the options to make it work?

I don't understand why a NTFS partition on an external HDD can be mounted and unmounted without root password, but a NTFS partition on a local HDD requires root password and I don't seem to be able to work around it.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-06-04 13:13:00 -0500

kparal gravatar image

updated 2012-12-16 14:22:35 -0500

Based on the answer from czerny, I have found out an (almost) perfect solution. The configuration file is placed in /etc, so that the changes are not overridden on next polkit update. Also I have restricted the right to mount any local partition to system administrators only.

Fedora 17 (GNOME 3.4)

  1. Create the policy file

    $ sudo vim /etc/polkit-1/localauthority/50-local.d/99-mount-partitions.pkla

  2. Put in the following content:

    [Password-less mounting of local partitions]
  3. (Optional) The rights are currently elevated for anyone in the wheel group (system administrators). You can select only particular users e.g. this way:


    More documentation is at pklocalauthority.8.html.

  4. Changes take effect immediately.

Fedora 18 (GNOME 3.6)

Follow the guide for Fedora 17, but the file should be saved to /etc/polkit-1/rules.d/99-mount-partitions.rules and its contents should be:

// Password-less mounting of local partitions
polkit.addRule(function(action, subject) {
    if ( == "org.freedesktop.udisks2.filesystem-mount-system" && subject.isInGroup("wheel")) {
       return polkit.Result.YES;
edit flag offensive delete link more


i tried $ sudo vim /etc/polkit-1/localauthority/50-local.d/99-mount-partitions.pkla. but i got a screen as black and in bottom they wrote as 0,0-1 All. what does this mean?

john.koshy gravatar imagejohn.koshy ( 2013-07-13 19:03:54 -0500 )edit

The change for Fedora 18 above (add 99-mount-partitions.rules) works for me in Fedora 22. It allows me to use the ifuse command as an unprivileged user to mount a popular fruit-based mobile device. Thank-you.

Steve HHH gravatar imageSteve HHH ( 2015-06-28 08:04:23 -0500 )edit

Thaks so much this was so annoying! Btw. the Fedora 18 approach is working on F23 too.

enaut gravatar imageenaut ( 2015-09-27 05:29:25 -0500 )edit

answered 2012-05-31 17:17:07 -0500

czerny gravatar image

Mounting in fedora 17 is handled by udisks system. This system uses PolicyKit to controlling access. So it's necessary to change a PolicyKit rule.

In file


in block

<action id="org.freedesktop.udisks2.filesystem-mount-system">


<allow_any>auth_admin</allow_any> <allow_inactive>auth_admin</allow_inactive> <allow_active>auth_admin_keep</allow_active>


<allow_any>yes</allow_any> <allow_inactive>yes</allow_inactive> <allow_active>yes</allow_active>

Documentation of available authentication options:

edit flag offensive delete link more

answered 2012-04-16 14:39:23 -0500

The IceMan Blog gravatar image

Try this in your fstab file

/dev/sda9 /mnt/shared ntfs rw,noatime,noauto,users 0 0

users Allow every user to mount and unmount the filesystem. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line users,exec,dev,suid).

edit flag offensive delete link more

Question Tools



Asked: 2012-04-15 16:04:07 -0500

Seen: 19,466 times

Last updated: Dec 16 '12