[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#595292: mounting cdrom by ordinary program

On Sun, Sep 12, 2010 at 4:59 PM, Paul Gevers <paul@climbing.nl> wrote:
> Hi all,
> With upstream of daisy-player (ITP: #595292) I am working on getting a
> Daisy player for Daisy talking books into good shape. I am having
> concerns about the current "hack" of upstream to ensure the program is
> able to read from a cd. The upstream source contains one udev rule to
> create a daisy-player link to the cdrom device and in the run parameter
> it adds a line to /etc/fstab allowing everybody to mount the cdrom. When
> daisy-player is run without options, it tries to mount the device and
> plays from it. I don't believe this is the way to do it, but I have not
> found yet what is appropriate in this case. I would appreciate some
> hints to what to do to obtain the desired effect, i.e. that the program
> can automatically read from cdrom if present.


UDisks (formely known as DeviceKit-disks) uses PolicyKit to authorize
several operations on disks and optical media. It can be configured to
allow any user to mount storage devices (ranging from USB drives to
CDs and beyond) without root privileges. In fact, the Debian package
(udisks) allows you to mount those devices without root privileges by
default. You might want to take a look at the udisks-mount manual

Hope this helps,

Reply to: