On Mon, 2016-12-26 at 22:16 +0100, Nimrod wrote:

> On Mon, 2016-12-26 at 18:29 +0100, Pascal Hambourg wrote: 
> 
> > Le 26/12/2016 à 17:28, Nimrod a écrit :
> > > On Sat, 2016-12-24 at 05:20 +0100, Michael Biebl wrote:
> > >
> > >> Does it help if you mount the cdrom as shared?
> > >> See https://udisks.freedesktop.org/docs/latest/udisks.8.html →
> > >> UDISKS_FILESYSTEM_SHARED
> > >
> > > No, it doesn't. The disk is already mounted in a shared directory, but
> > > its name is "/media/<user>/CDROM", and permissions are restricted to
> > > <user> only, where <user> is the one who first logged in the Gnome
> > > desktop.
> > 
> > /media/<user> is not a shared directory.
> 
> Sorry, you're right. I followed the above suggestion, but the result
> is not a great step forward: if another user tries to eject the cdrom,
> he's asked with the password of the user who logged for first.
> 
> I guess I have to specify suitable permission in the above file. I
> tried with:
> 
> ENV{ID_FS_USAGE}=="filesystem|other|crypto",
> ENV{UDISKS_FILESYSTEM_SHARED}="1", GROUP="users", MODE="0660"
> 
> (on a single line), but it seems that GROUP and MODE are simply
> ignored.

Sorry, I'm wrong again: the above line actually sets suitable permission
on /dev/sr0. So the problem is at mount point  level. The cdrom is
mounted under /media/CDROM, but whatever permission I give to /media the
CDROM subdirectory is owned by user 1000 and nobody can umount it except
user 1000 (that's me, but if another user mount it, "eject" prompts me
with my own credentials in order to actually eject the CDROM).

I didn't find any way to mount /media/CDROM avoiding this annoying
behaviour.

Deep darkness again.

> 
> Thanks a lot anyway. 
> 
> > 

Reply via email to