Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
serverfault.com/questions/152434/… –  Web-E May 11 '12 at 4:13

2 Answers 2

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]
share|improve this answer

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.