[opensuse] eject behaviour in Leap?

If I plug a device (camera as it happens) into my Leap 42.1 PC, it mounts fine at /run/media/my-username/4DIG-IHEX/ where my-username and 4DIG-IHEX match my username and presumably some hardware dependent ID respectively. So far so good. When the time comes that I've finished with the camera I type $ eject /run/media/my-username/4DIG-IHEX which used to be the preferred thing to do, AIUI, (with the then current path, anyway). But now it says: umount: /run/media/my-username/4DIG-IHEX: umount failed: Operation not permitted Looking at the permisssions I see: $ ls -la /run/media/my-username/4DIG-IHEX drwxr-xr-x 5 my-username users 32768 Jan 1 1970 ./ drwxr-x---+ 6 root root 120 May 16 22:14 ../ and I have to unmount the device as root. So what's wrong? Should I be using some different command to eject the device? If root has to unmount it, why is it automatically mounted by my-username and inaccessible to anybody else? Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org

On Tue, 16 May 2017 23:24, Dave Howorth <dave@...> wrote:
If I plug a device (camera as it happens) into my Leap 42.1 PC, it mounts fine at /run/media/my-username/4DIG-IHEX/ where my-username and 4DIG-IHEX match my username and presumably some hardware dependent ID respectively. So far so good.
When the time comes that I've finished with the camera I type
$ eject /run/media/my-username/4DIG-IHEX
which used to be the preferred thing to do, AIUI, (with the then current path, anyway). But now it says:
umount: /run/media/my-username/4DIG-IHEX: umount failed: Operation not permitted
Looking at the permisssions I see:
$ ls -la /run/media/my-username/4DIG-IHEX drwxr-xr-x 5 my-username users 32768 Jan 1 1970 ./ drwxr-x---+ 6 root root 120 May 16 22:14 ../
and I have to unmount the device as root. So what's wrong? Should I be using some different command to eject the device? If root has to unmount it, why is it automatically mounted by my-username and inaccessible to anybody else?
use "udisksctl" or right-click =» eject / unmount in file browser, see "udisksctl unmount --help" and "man udisksctl" for more info. udisksctl uses some premission / dbus mongery to get the unmount command to the udev layer where action is done with the needed rights. - Yamaban.
participants (2)
-
Dave Howorth
-
Yamaban