[CentOS] disable dvd write

Wed Jul 7 08:09:08 UTC 2010
Keith Roberts <keith at karsites.net>

On Tue, 6 Jul 2010, grace rante wrote:

> To: centos at centos.org
> From: grace rante <graziee at gmail.com>
> Subject: [CentOS] disable dvd write
> 
> hi, does anybody know how to disable dvd/cd write access in centos 5.3?
>
> thanks

See 'pinfo mount', 'pinfo fstab' for options available. You 
might be able to make the CD/DVD drive ro, with something 
like this in your /etc fstab file:

# DVD-RW drive VOM-12E48X - Fedora 12 example
/dev/sr0   /media/dvdrecorder  iso9660 ro,user,noauto,unhide  0 0

>From the mount(8) man page:

The non-superuser mounts.
Normally,  only  the superuser can mount filesystems.  However,
when fstab contains the user option on a line, anybody can
mount the corresponding system.

Thus, given a line

     /dev/cdrom  /cd  iso9660 ro,user,noauto,unhide

any  user  can  mount the iso9660 filesystem found on his CDROM
using the command

   mount /dev/cdrom

or

   mount /cd

Kind Regards,

Keith Roberts