1

I want to disable CDROM/CDRW/DVDROM/DVDRW for everyone in Ubuntu 14.04.1 desktop 64-bit edition.

I have tried following but not worked:

  1. Removed user from /etc/group, as following: cdrom:x:24:

    as defined at Permanently disable CD drive

  2. Defined rules in /etc/udev/rules.d/71-cdrom-block.rules and /lib/udev/rules.d/71-cdrom-block.rules as follows:

    ENV{UDISKS_SYSTEM}="1", ENV{UDISKS_AUTO}="0", ENV{UDISKS_SYSTEM_INTERNAL}="1",         ENV{UDISKS_AUTOMOUNT_HINT}="never"
    

    as defined at https://superuser.com/questions/693155/disable-device-node-using-udev-dev-sr0

But still I am able mount the CD-ROM. Kindly help how to disable it for everyone.

1

1 Answer 1

0

Can you do this to change the permissions of the drive to root only

sudo chmod 700 /media/path/to/your/DVDRom

Your mount point is in /media/DVDdrivenamehere

This will make it requier root password and

sudo chmod 777 /media/path/to/your/DVDRom

Will allow full accsess againg

To disable DVD auto-play open system settings and go to details

On the left choose removable media, you can easily set auto-play parameters. from here

9
  • I am getting error while running# "sudo fstab nouser" command Error : "sudo: fstab: command not found" Which package is needed to install fstab command in 14.04.1 ? Aug 27, 2014 at 7:06
  • sudo apt-get install fstab, it should be installed.
    – Mark Kirby
    Aug 27, 2014 at 7:08
  • If that does not work sudo chmod +x /etc/fstab.d and try again
    – Mark Kirby
    Aug 27, 2014 at 7:10
  • Still fstab command not worked. <br/># sudo chmod +x /etc/fstab.d # sudo fstab nouser sudo: fstab: command not found # ls -l /etc/fstab.d total 0 # cd /etc/fstab.d/ :/etc/fstab.d# ls :/etc/fstab.d# ls -l total 0 Aug 27, 2014 at 7:28
  • New answer for you
    – Mark Kirby
    Aug 27, 2014 at 7:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .