devfs
[Top] [All Lists]

Re: /dev/cdrom and devfs v213

To: Linux devfs <devfs@xxxxxxxxxxx>
Subject: Re: /dev/cdrom and devfs v213
From: pg_mh@xxxxxxxxxxxxxxxx (Piercarlo Grandi)
Date: Sun, 19 May 2002 23:58:53 +0100
In-reply-to: <20020519220450.GA6014@wizard.com>
References: <20020519220450.GA6014@wizard.com>
Reply-to: pg_mh@xxxxxxxxxxxxxxxx (Piercarlo Grandi)
Sender: owner-devfs@xxxxxxxxxxx
>>> On Sun, 19 May 2002 15:04:50 -0700, A Guy Called Tyketto
>>> <tyketto@xxxxxxxxxx> said:

tyketto>         I'll make it short.  Has anyone had a problem with a
tyketto>         non-root user trying to access /dev/cdrom? [ ... ]

The first line in my '/etc/devsfd.conf' is 'INCLUDE /etc/devfsd.local',
and then I have a file '/etc/devfs.local' in which I put local
configuration, including permissions, such as:

------------------------------------------------------------------------
REGISTER        ^ide/host0/bus1/target0/lun0/cd$        COPY $devpath   cdrom
UNREGISTER      ^ide/host0/bus1/target0/lun0/cd$        EXECUTE rm      cdrom
REGISTER        ^scsi/host0/bus0/target3/lun0/generic$  COPY $devpath   cdr
UNREGISTER      ^scsi/host0/bus0/target3/lun0/generic$  EXECUTE rm      cdr

REGISTER        ^cdrom[0-9]*$   PERMISSIONS root.disk   0444
REGISTER        ^cdr[0-9]*$     PERMISSIONS root.root   0660
------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>