I just decided to swith to EnOS on my main PC (hurray! )
Anyway, I am just ironing out some rough edges that I didn’t know existed on my previous distros.
For example now when I want to mount internal HDD in Thunar it requires a password.
Is it possible to find out how is this action handled and modifies so that I do not need a password? Where should I start looking?
Full time mount in fstab is possible but I would rather keep it unmounted in case I do something stupid with rm -rf.
@manuel , @pebcak thank you for the reply but it is not exactly what I wanted. Yes, it mounts the drive without password but also it requires an entry in fstab.
I was probably more interested it the way how other distros (for example Xubuntu or Manjaro) mounts additional drives through Thunar without a necessity to input password.
It looks like I am able to mount USB drive this way but internal HDD requires password. Is it just about proper configuration of udisks/udev?
Looks like you would need to create a polkit rule for udisk2 to mount partitions without asking for password. I dug around a bit and something like the following might work.
If you’re up to testing, create the file:
/etc/polkit-1/rules.d/10-udisks2.rules
with this content:
// 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;
}
});