Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #176000

Re: Preventing ACL on cdrom drive...

From Nimrod <nimrod@virgilio.it>
Newsgroups linux.debian.user
Subject Re: Preventing ACL on cdrom drive...
Date 2016-12-28 11:30 +0100
Message-ID <sTjEB-6Rj-3@gated-at.bofh.it> (permalink)
References <sRCs2-1T6-23@gated-at.bofh.it> <sRM82-1We-1@gated-at.bofh.it> <sSGjT-73u-3@gated-at.bofh.it> <sSHpD-7Hm-7@gated-at.bofh.it> <sSKQx-1Ad-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw


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. 
> 
> > 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-23 19:10 +0100
  Re: Preventing ACL on cdrom drive... "Thomas Schmitt" <scdbackup@gmx.net> - 2016-12-23 20:30 +0100
    Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-23 21:20 +0100
      Re: Preventing ACL on cdrom drive... "Thomas Schmitt" <scdbackup@gmx.net> - 2016-12-23 23:20 +0100
        Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-23 23:50 +0100
  Re: Preventing ACL on cdrom drive... Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-12-23 21:00 +0100
    Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-23 22:50 +0100
  Re: Preventing ACL on cdrom drive... Michael Biebl <biebl@debian.org> - 2016-12-24 05:30 +0100
    Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-26 17:30 +0100
      Re: Preventing ACL on cdrom drive... Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-12-26 18:40 +0100
        Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-26 22:20 +0100
          Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2016-12-28 11:30 +0100
            Re: Preventing ACL on cdrom drive... Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-12-28 13:50 +0100
              SOLVED Re: Preventing ACL on cdrom drive... Nimrod <nimrod@virgilio.it> - 2017-01-01 19:10 +0100

csiph-web