Thunar doesn't mount units in Fluxbox

Hi Endeavour OS users!

I don’t find a Fluxbox topic in Desktops Enviroments, so I’m posting here (OP, feel free to move my post if necessary).

I’m using the Fluxbox DE, with Thunar as File Manager. When I try to mount my units (sda1,sda2,etc), he didn’t ask for a password (like he does in XFCE) and don’t mount my units, even I see them on the left column.
Strangely, when using this command in xfce-terminal (I read in ArchWiki about udisks and permitions):

$ udisksctl mount -b /dev/sda5

the terminal asks my password:

==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-system ====
Authentication is need to mount SAMSUNG HD321KJ (/dev/sda5)
Authenticating as: Name (user)
Password: 

And mounts my unit.
Is there any workaround to make the Fluxbox open a windows in Thunar to ask my password to mount my units like in XFCE?
My specs:
https://clbin.com/ANe3v
Thanks in advance (and forgot some grammars errors, I’m from Brazil)

Are you part of the disk group?

Perhaps you need polkit?

2 Likes

Welcome to the forum @Proscrit09 :enos_flag: :enos: :partying_face:

This is a window manager rather than a desktop environment so you may need to do more configuration, for example Xfce includes udisks support for mounting devices.

Hi everyone. Thanks for the fast replies.
Answering them:
No, I’m not in the disk group.
Yes, I need polkit rules.
Reading this wiki:
https://wiki.archlinux.org/title/Udisks#Configuration
I figured that my problem is with udisks2 and the polkit rules. Searching in the forum, I found this topic:
https://forum.endeavouros.com/t/password-authentication-when-mounting-drives-in-thunar/17812/5
This is what my problem: add a polkit rule for udisk2.
Followed the post (created /etc/polkit-1/rules.d/10-udisks2.rules) with:

// Allow udisks2 to mount devices without authentication
// for users in the “wheel” group.
polkit.addRule(function(action, subject) {
if ((action.id == “org.freedesktop.udisks2.filesystem-mount-system” ||
action.id == “org.freedesktop.udisks2.filesystem-mount”) &&
subject.isInGroup(“wheel”)) {
return polkit.Result.YES;
}
});

and now my thunar mount my partitions without asking a password (because I’m in the wheel group), in XFCE and in Fluxbox. It’s a elegant solution, since I don’t have to mess with polkit and udisk2. Many thanks to everyone who helped me.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.