storage: Not able to eject a mounted USB disk
A FAT-32 formatted USB disk mounted on a OLinuXino Lime 2, running Plinth 0.40.0, fully upgraded Debian testing.
Wrote one backup archive to this disk. The disk is mounted at /media/root/FreedomBox
Error log:
[2018-10-22 14:07:49,711] plinth.modules.storage.views ERROR Error ejecting device - Not authorized to perform the requested operation.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/plinth/modules/storage/views.py", line 128, in eject
drive = udisks2.eject_drive_of_device(device_path)
File "/usr/lib/python3/dist-packages/plinth/modules/storage/udisks2.py", line 98, in eject_drive_of_device
umount_all_filesystems_of_drive(drive_object_path)
File "/usr/lib/python3/dist-packages/plinth/modules/storage/udisks2.py", line 132, in umount_all_filesystems_of_drive
umount_filesystem(obj.get_filesystem())
File "/usr/lib/python3/dist-packages/plinth/modules/storage/udisks2.py", line 118, in umount_filesystem
filesystem.call_unmount_sync(_get_options())
gi.repository.GLib.GError: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation (4)