Ask Your Question

Mount NTFS partition on-demand without password?

asked 2012-04-15 21:04:07 +0000

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: http://www.tuxera.com/community/ntfs-3g-faq/#unprivileged

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 18:13:00 +0000

updated 2012-12-16 20:22:35 +0000

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 (action.id == "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 ( 2013-07-14 00:03:54 +0000 )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 ( 2015-06-28 13:04:23 +0000 )edit

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

enaut ( 2015-09-27 10:29:25 +0000 )edit

answered 2012-05-31 22:17:07 +0000

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: http://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html

edit flag offensive delete link more

answered 2012-04-16 19:39:23 +0000

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools



Asked: 2012-04-15 21:04:07 +0000

Seen: 17,303 times

Last updated: Dec 16 '12