Let sall appreciate the iniative taken by Mr Sadhiq for providing  very useful 
daily tips .
 
Let me request sadhiq  for a small favour  in the subject line can you provide 
the subject  of that days tip also this will be  very handy for everyone for  
future references
 
like  Linux_Mantra Daily Tips Disabel Usb
 
Thanks  & regards
 
 
Ashok abraham
 
 
 
 
 


--- On Tue, 17/3/09, b.sadhiq <[email protected]> wrote:


From: b.sadhiq <[email protected]>
Subject: [Linux_Mantra] Daily Tips
To: [email protected]
Date: Tuesday, 17 March, 2009, 11:57 PM





Disable Usb

The USB storage drive automatically detects USB flash or hard drives. You can 
easily force and disable USB storage devices under any Linux distribution. The 
modprobe program used for automatic kernel module loading and can be configured 
to not load the USB storage driver upon demand. This will prevent the modprobe 
program from loading the usb-storage module, but will not prevent root (or 
another program) from using the insmod program to load the module manually.

Type the following command:
# echo 'install usb-storage : ' >> /etc/modprobe. conf

You can also remove USB Storage driver, enter:
# ls /lib/modules/ $(uname -r)/kernel/drivers/ usb/storage/ usb-storage. ko
# mv /lib/modules/ $(uname -r)/kernel/drivers/ usb/storage/ usb-storage. ko 
/root
BIOS option

You can also disable USB from system BIOS configuration option. Make sure BIOS 
is password protected.
Grub option

You can get rid of all USB devices by disabling kernel support for USB via 
GRUB. Open grub.conf or menu.lst (Under Debian / Ubuntu Linux) and append 
"nousb" to the kernel line as follows:

kernel /vmlinuz-2.6. 18-128.1. 1.el5 ro root=LABEL=/ console=tty0 
console=ttyS1, 19200n8 nousb

Save and close the file. Once done just reboot the system:
# reboot

















      Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to