LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-25-2009, 05:57 AM   #1
Ajith@NeST
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Wink USB and CD drive disabling in linux


Hi all,

My organization nowadays have switched to RHEL4 from WindowsXP for desktops for some applications. But i would like to know the best option for CDROM and USB device disabling in these machines either as scripts or commands).Please help me
 
Old 02-25-2009, 08:36 AM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 997
Blog Entries: 15

Rep: Reputation: 136Reputation: 136
Hi, the easiest is to remove the users you don't want to have access from the relevant groups (usually usb,plugdev,cdrom,cdrw...). Another option is manually removing devices from /dev : rm /dev/sr0 (to remove cdrom using the new pata drivers). last and most easy in my opinion is blacklisting relevant modules, preventing drivers from being loaded : edit /etc/modprobe.d/blacklist and add the modules you want blocked there. (for USB it's usbcore, for cdroms using PATA stack sr_mod).

Hope I helped
 
Old 02-25-2009, 03:50 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't know if RHEL4 is compatible but after generic measures like disabling options through the BIOS, covering phy ports and what serafean mentioned, you could look at PolicyKit?
 
Old 02-25-2009, 11:16 PM   #4
Ajith@NeST
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you all for your replies.I think your suggestions are best solutions of my problem
 
Old 03-04-2009, 10:21 PM   #5
seimour
LQ Newbie
 
Registered: Feb 2006
Location: Euroland
Distribution: Debian Stable
Posts: 26

Rep: Reputation: 15
and editing those workstations udev rules?
 
  


Reply



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
Disabling USB pen drive msivadass Linux - Security 2 07-06-2008 05:47 AM
How to disable USB Mass Storage device ( usb drive ) in Linux vijaush Linux - Newbie 4 06-25-2008 09:43 AM
Recharge iPod shuffle / USB high-powered ports / Disabling USB storage recognition simopal6 Linux - Hardware 1 05-31-2008 12:42 PM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 02:12 AM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 6 05-27-2004 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:34 AM.

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
Open Source Consulting | Domain Registration