LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-01-2011, 02:35 AM   #1
linux_beginer
LQ Newbie
 
Registered: Mar 2011
Posts: 24

Rep: Reputation: 0
Disabling USB storage.


!!!!!Hello Everyone!!!!!!!!

I am trying to disable USB storage from servers.
What I did is as following

1> modprobe -vr usb_storage

2> blacklist usb_storage

It is working fine. But root can again load the module into the kernel. [ modeprobe -v usb_storage ]

I want to restrict this also. My requirement is not even root can access the usb storage.


Distro: RHEL 5.X 64bit

Is there any way?
 
Old 04-01-2011, 04:39 AM   #2
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Unplug the USB ports from the mother board. Or as I once saw, fill the port with some kind of epoxy!

There isn't a software solution that can't be undone by someone with root access. That's the nature of the root account. If you can't trust someone with root access then perhaps they shouldn't have it.
 
Old 04-01-2011, 05:03 AM   #3
linux_beginer
LQ Newbie
 
Registered: Mar 2011
Posts: 24

Original Poster
Rep: Reputation: 0
disable USB

Quote:
Originally Posted by redgoblin View Post
Unplug the USB ports from the mother board. Or as I once saw, fill the port with some kind of epoxy!

There isn't a software solution that can't be undone by someone with root access. That's the nature of the root account. If you can't trust someone with root access then perhaps they shouldn't have it.
Yes we can do that... but we have 90 servers. can not afford downtime.
What if I directly delete the module usb-storage.ko??
Will it affect while booting??

rm /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
 
Old 04-01-2011, 05:21 AM   #4
redgoblin
Member
 
Registered: Jun 2005
Location: UK
Distribution: Debian
Posts: 189

Rep: Reputation: 41
Quote:
Originally Posted by linux_beginer View Post
What if I directly delete the module usb-storage.ko??
Will it affect while booting??

rm /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
I'm not sure. If it's been black listed then possibly not. You could certainly test it on one, but someone else will need to answer that part (I've not tried it)

Point to consider; if your concerned about some one with root access reloading the module then what's to stop them from rebuilding the module or copying it back in from somewhere. Just a thought.
 
Old 04-01-2011, 05:41 AM   #5
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Most Servers will let you selective turn off the internal/front/back USB ports as you wish in the BIOS or Management console. Of course this disabled the port completely.
 
Old 04-01-2011, 07:32 AM   #6
linux_beginer
LQ Newbie
 
Registered: Mar 2011
Posts: 24

Original Poster
Rep: Reputation: 0
!!!!Hello Everyone!!!

I have removed the usb-storage.ko module and rebooted the system. There is no problem while booting.
So think this way is working in my situation.

Thanks everybody for taking interest in my thread.

Last edited by linux_beginer; 04-01-2011 at 07:37 AM.
 
  


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
[SOLVED] usb-storage + usb card-reader = klogd spamming logs GrapefruiTgirl Linux - Kernel 9 08-10-2009 09:34 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
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:18 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