UBUNTU FIX: unable to mount external driveusing udisksctl
STUCK? WhatsApp us
https://wa.me/+254707236591
Telegram group
https://t.me/unixandlinux
join our community for live chat
https://www.youtube.com/channel/UCoI5JVBuifw5PZC-hwr3NfQ/join
A solution to Error mounting /dev/sdXY: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation
Ubuntu 23.10 and later
polkit.addRule(function(action, subject) {
if (action.id == “org.freedesktop.udisks2.filesystem-mount” &&
subject.user == “user”) {
return polkit.Result.YES;
}
});
to allow any user
polkit.addRule(function(action) {
if (action.id == “org.freedesktop.udisks2.filesystem-mount”) {
return polkit.Result.YES;
}
});
Ubuntu 23.04 and earlier
[Allow Mounting From User Cron]
Identity=unix-user:user
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
to allow any user
[Allow Mounting From User Cron]
Identity=unix-user:*
Action=org.freedesktop.udisks2.filesystem-mount
ResultAny=yes
if this video helped, you can buy me coffee
btc address(bitcoin network) : 18Le59m82Z4RRTEH8kNDeNVFzXzVnxH6Se
usdt(TRC20) : TNL29JfK8Xx6boDZ54PqWwTKTxs4k6Z3cj
ubuntu