Mailinglist Archive: opensuse (2955 mails)

< Previous Next >
Re: [opensuse] Force module not to load
  • From: Fajar Priyanto <fajarpri@xxxxxxxxxx>
  • Date: Mon, 12 Feb 2007 15:46:22 +0700
  • Message-id: <200702121546.23454.fajarpri@xxxxxxxxxx>
On Monday 12 February 2007 07:05, Carl Hartung wrote:
> > /bin/false would sound more logical to a human, but it returns "false" on
> > exit, so modprobe thinks there was an error, and this would interrupt a
> > boot, and/or give annoying error messages in the log

This is what we implement in Finance dept so that users cannot copy data out
of the PC using any USB storage device:

/etc/modprobe.conf:
install usb_storage \
wall "Sorry, no USB storage devices are allowed" \
&& /bin/false

Make sure we reboot the PC before it takes effect, or unload the module
manually: modprobe -r usb_storage

HTH,
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
3:46pm up 2:35, 2.6.16.21-0.8-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
< Previous Next >