Linux – Arch Linux , mount disks with thunar , without password

arch linuxpolkitthunar

I just setup a minimal installation of Arch , installed gvfs , thunar-volman.

But mounting disk requires password , this shouldn't happen.

How should I work it out ?

Best Answer

The Arch Wiki has a section on the udev page that covers the many ways you can set up automounting.

With a minimal install (without a DE), you can use a udev rule—there are several examples included on the page—or udisks and one of the wrappers like udiskie, or something even simpler like ldm that requires no other tools.

My preference is for udiskie and the storage group.

Essentially, it is just a matter of starting udiskie in your .xinitrc and creating /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla:

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

Anyone in the storage group will now be able to mount and unmount devices.

Related Question