3

Can anyone help me how to disable the cdrom in Ubuntu 11.10 OS level.

I tried searching google but I could not find any solution.

david6
  • 14,449
  • 4
  • 36
  • 46
JBSR
  • 31
  • 2
  • http://serverfault.com/questions/152434/how-to-disable-cd-rom-and-usb-for-normal-users-in-linux – Web-E May 11 '12 at 04:13

2 Answers2

4

From: Managing Ubuntu Linux Users and Groups

To remove a user [eg. john] from membership of a group [eg. accounts] use:

sudo deluser john accounts

And, to undo:

sudo adduser john accounts

So to match example (in other answer):

sudo deluser tachyons cdrom
sudo adduser tachyons cdrom    [to undo]
david6
  • 14,449
  • 4
  • 36
  • 46
2

Do it in your risk

Take a backup of /etc/group

press ctrl+alt+t and type gksudo gedit /etc/group

Remove the users from cdrom(in this screenshot tachyons is the user name)

enter image description here

save the file and restart your pc

Tachyons
  • 17,221
  • 18
  • 74
  • 116