xfce4 asking for authentication while mounting drives/usb on fedora27

I have recently installed fedora27 and observed that when tying to mount drives from thunar default file manager it asks for authentication.


this may be good for the session but after reboot you will have to again authenticate to fix the issue follow the below steps.

#create a fileĀ /etc/polkit-1/rules.d/10-udisks2.rules
then add

// See the polkit(8) man page for more information
// about configuring polkit.

// 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;
}
});