Re: Disable pendrive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David C. Chipman wrote:
On Mon, 18 Feb 2008 23:52:35 -0500
arunbkn@xxxxxx wrote:

Dear All,

How can i disable the usb port(s) of our clients to use mass storage
media (pen drives), where they (usb ports) should be working for
printer and other uses.

regards

Arun

________________________________________________________________________
You are invited to Get a Free AOL Email ID. - http://webmail.aol.in

Hi Arun, It sounds like you have an interesting problem. Did you consider deleting the usb-storage kernel module? On my currently running kernel ("2.6.23.15-137.fc8", in my case), it can be found at:

/lib/modules/2.6.23.15-137.fc8/kernel/drivers/usb/storage/usb-storage.ko

	If you want to make sure it doesn't show up at all, you might
set up a "search-and-destroy" in your /etc/rc.local file. Something
like this (PLEASE NOTE: This code has NOT been tested!):

---8<--Cut here--8<---
if [ -f /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko ]
then
	rm -f /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko
	logger Removed USB Storage Kernel module
fi
---8<--Cut here--8<---

Another solution would involve you recompiling kernels, and removing support for USB storage devices from the built kernel yourself. Later,

		-David Chipman



If the user doesn't have elevated privileges, maybe blacklisting the modules is enough..?


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux