sameer shinde wrote: > On Mon, Feb 16, 2009 at 9:20 PM, Arun Khan <[email protected]> wrote: > >> On Monday 16 Feb 2009, Anurag wrote: >> >>> 2009/2/16 sameer shinde <[email protected]>: >>> >>>> Hi All, >>>> >>>> Can anyone tell me, how do I disable usb storage in linux? >>>> I want just to disable usb storage, but usb keyboard / mouse should >>>> work in system. >>>> >>> 1. Remove any references to USB device (usually /dev/sdXY - check the >>> output from dmesg while attaching USB device) from /etc/fstab. >>> 2. Remove any sudo or root access for the user. >>> >>> >> I guess it could be done with HAL policy also (as long users do not have >> root access to the OS). >> > > How do I do it with HAL policy? > > As per Anurag, I checked it for dev/sdXY, which is showing me as /dev/sdb1. > How do I block /dev/sdb1 to the users, what if the device picked up > other sdbX as > /dev/sdb1 is not available? > > I also checked in /etc/fstab but could not found any relevant entry in it. > FYI - The users does not have admin privileges. It is just a standard > linux desktop user. > > any go ahed? > > As Mrugesh suggested, knock out the usb_storage module. You will find it using the lsmod command. You will find the man pages of lsmod and modprobe interesting.
-- Regards, Rony. GNU/Linux ! No Viruses No Spyware Only Freedom. -- http://mm.glug-bom.org/mailman/listinfo/linuxers

