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.

1

2 Answers 2

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]
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

6
  • 2
    your answer is incomplete. plz complete it by writing how to remove users from the cdrom option...
    – Ashu
    May 11, 2012 at 6:21
  • @Ashu feel free to edit :)
    – Tachyons
    May 11, 2012 at 6:29
  • Added command-line alternative (potentially safer), as separate answer.
    – david6
    May 11, 2012 at 7:52
  • I tried all these things but still normal users are able to access the cdrom
    – JBSR
    May 14, 2012 at 10:04
  • I tried all these things but still normal users are able to access the cdrom
    – JBSR
    May 14, 2012 at 10:04

You must log in to answer this question.

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