LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2014, 02:38 AM   #1
salmanci
LQ Newbie
 
Registered: Oct 2013
Location: India
Posts: 9

Rep: Reputation: Disabled
Question I need to disable CD Write option in Ubuntu 13.04 desktop for users other than root.


I need to disable CD Write option in Ubuntu 13.04 desktop for users other than root. Pls help.
 
Old 01-10-2014, 02:54 AM   #2
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
My drive device file has following access rights, owner and group:
Code:
$ ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 янв  9 18:57 /dev/sr0
So if I need to deny CD/DVD burning for an ordinary user, I just delete that user from 'cdrom' group.
 
Old 01-10-2014, 03:05 AM   #3
Darshan Parab
LQ Newbie
 
Registered: Jan 2014
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by salmanci View Post
I need to disable CD Write option in Ubuntu 13.04 desktop for users other than root. Pls help.
Since you don't want a user other than root to write to CD-drive, you can just disable Write permission for group and others.. Allow them to only read..

chmod go-w /dev/cdrom

You can mentioned whatever device it shows on your system
 
Old 01-10-2014, 03:12 AM   #4
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Quote:
Originally Posted by Darshan Parab View Post
... you can just disable Write permission for group and others.. Allow them to only read..

chmod go-w /dev/cdrom

You can mentioned whatever device it shows on your system
... and get ready to do this stuff every time after reboot. Because device files will be created with default owner, group and access rights, and all changes you have made will be lost. Hence, if you need to manage user rights, you should do it at user level, not device one.

Last edited by allez; 01-10-2014 at 03:21 AM.
 
2 members found this post helpful.
Old 01-10-2014, 04:11 AM   #5
salmanci
LQ Newbie
 
Registered: Oct 2013
Location: India
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allez View Post
... and get ready to do this stuff every time after reboot. Because device files will be created with default owner, group and access rights, and all changes you have made will be lost. Hence, if you need to manage user rights, you should do it at user level, not device one.
so you suggest the best way is to remove the user from "cdrom" group..?
 
Old 01-10-2014, 07:47 AM   #6
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
Yes, I do. I've done this much more than once, and every time it worked.
 
Old 01-10-2014, 10:41 PM   #7
salmanci
LQ Newbie
 
Registered: Oct 2013
Location: India
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allez View Post
Yes, I do. I've done this much more than once, and every time it worked.
in that case are you sure user will get read permission if we remove from group cdrom..?
 
Old 01-11-2014, 05:28 AM   #8
allez
Member
 
Registered: Jul 2008
Location: Russia/Siberia/Krasnoyarsk
Distribution: SuSE, CentOS, FreeBSD
Posts: 77

Rep: Reputation: 21
No one can be completely sure in our world.
But you can try to exclude one of your users from 'cdrom' group and thus check if my method will work for you. If it won't, you may use method offered by Darshan Parab. In last case you will have to put the chmod command into one of your initialization scripts to avoid a "hand job" after every reboot.
 
Old 01-12-2014, 09:35 PM   #9
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,599

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Or just alter the udev rule that makes it group writable.
 
1 members found this post helpful.
Old 01-12-2014, 11:02 PM   #10
salmanci
LQ Newbie
 
Registered: Oct 2013
Location: India
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks alot for your suggestions.. will try each one and inform here..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can we disable change 'desktop background option' / all alternatives for the same prasanth.george Linux - Newbie 3 09-05-2013 09:47 AM
option to disable battery charging in ubuntu 10.04 rtz Linux - Software 1 12-20-2012 09:14 AM
LXer: How to : Disable Autohide Option of Unity in Ubuntu 11.10 LXer Syndicated Linux News 0 11-12-2011 10:10 PM
how to disable shutdown button or option for non root users ankurpachauri Linux - General 5 09-10-2009 06:30 AM
Disable viewing root directory for users gellings Linux - Security 1 04-10-2006 11:34 AM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration