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)
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.
// 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.