udiskie: GDBus.Error

Hi, I can’t mount with udiskie 1.4.9 on a headless Debian testing (stretch) but I can successfully mount “manually”:

...@...:~$ udiskie-mount -a
failed to mount /org/freedesktop/UDisks2/block_devices/sdb1: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to perform operation
...@...:~$ sudo mount /dev/sdb1 /tmp/
...@...:~$ 

See more details in #111 Appreciate any help!

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

Hey,

looks like you are missing some permissions, see here:

https://github.com/coldfix/udiskie/wiki/Permissions

Look at which version of policykit you are running

  • version 2 -> use the instructions at the top
  • version 1 -> use the instructions at the bottom

You need these in particular:

    org.freedesktop.udisks2.filesystem-mount
    org.freedesktop.udisks2.encrypted-unlock
    org.freedesktop.udisks2.eject-media
    org.freedesktop.udisks2.power-off-drive

but won’t hurt much to allow all, that’s described there.

Sorry, I didn’t read through the other thread carefully. Just get back to me, if this doesn’t work.