《Linux主机禁用USB接口》由会员分享,可在线阅读,更多相关《Linux主机禁用USB接口(2页珍藏版)》请在人人文库网上搜索。

1、Linux主机禁用USB接 口需要禁用RedHat 5X的Linux主机的使用USB存储器的功能。我是这样操作的:1找到驱动所在的目录:find /lib/ -n ame storage/lib/modules/2.6.18-92.e 15/kernel/drivers/usb/storage2删除或更名驱动文件:you can change “ ustetorage.ko” to another name in these folderor delete“tiosbge.ko”.(or rm /lib/modules/uname -r/kernel/drivers/usb/storage)I。

2、f you restore -storagte.ko ” , system will connect usb without reboot.重启后,USB就不能用了。看来是以前这台机器使用过USB,然后一直没重启过,估计驱动一直驻留在内存里面。Disable USB storage support in RHEL5cp_admin / June 2, 2011To easily disable USB storage device support in RHEL 5 just add the followi ng line to/etc/modprobe.c onfin stall usb-s。

3、torage :This will prevent modprobefrom loading the usb-storage module, but will allow administrators to manually load the module with insmod whenneeded.If you will never need USB support you can simply remove the USB Storage driver from the kern el. Note: This will have to be repeated after each ker。

4、nel update.mv /lib/modules/kernelversio n(s)/kernel/drivers/usb/storage/usb-storage.ko /rootYou could also appe ndno usb to the kern el li ne in your /etc/grub.c onf.Makesure that your /etc/grub.c onfis password protected or some on ecouldjust edit the line from it in single user mode.kernel /vmli n。

5、u z-versio n ro vga=extroot=/dev/VolGroup00/LogVol00 rhgb quiet nousbJune 2, 2011 in Linux , Security . Tags: disable , Linux, RHEL5 Security , USB如果仅仅是禁用 USB存储设备,使用下面的方法:禁用:mv /lib/modules/u name -r/kernel/drivers/usb/storage/usb-storage.ko /home/cocobear/ reboot开启:mv /home/cocobear/usb-storage.ko /lib/modules/uname -r/kernel/drivers/usb/storage。

Logo

更多推荐