Wiki Table of Contents

Mount internal partition without using root password

By default, the gvfs/udisks2 stack requires a root/superuser password when mounting internal partitions.  Setting the “user” option in your /etc/fstab file will not change this behavior in the gui (by default, Thunar) file managers that utilize gvfs and/or udisks2.

Authentication for udisks2 is handled with policy kit.  If you wish to override the default behavior of requiring a root/superuser password, then paste the contents below into a file called /etc/polkit-1/localauthority/50-local.d/50-udisks.pkla to allow any user in the “users” group to mount partitions without a root/superuser password.  Changes should take place immediately.  Note that this will NOT override the filesystem permissions.  

—–

Content of new file /etc/polkit-1/localauthority/50-local.d/50-udisks.pkla

Code:

[udisks]
Identity=unix-group:users
Action=org.freedesktop.udisks*
ResultAny=yes
ResultInactive=no
ResultActive=yes

2 thoughts on “Mount internal partition without using root password”

  1. This code does not work. You have to replace simple brackets () with square ones [], like:

    [udisks]
    Identity=unix-group:users
    Action=org.freedesktop.udisks*
    ResultAny=yes
    ResultInactive=no
    ResultActive=yes

    Reply
  2. Thank you! Those brackets got changed on the webiste during our migration from drupal to wordpress. fixed now.

    btw, this action can be done automatically in mx-tweak.

    Reply

Leave a Comment

Do NOT follow this link or you will be banned from the site!