LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   usb access restriction (https://www.linuxquestions.org/questions/linux-newbie-8/usb-access-restriction-4175453051/)

chinna@calken 03-06-2013 11:59 PM

usb access restriction
 
help me out in restricting the pendrive access to a user using fedora 12 os

shivaa 03-07-2013 12:10 AM

Check this link out here.

chinna@calken 03-07-2013 10:33 PM

wow surprising
 
i dont think so it is working shivaaaa plz could u screenshots n reply thankyou

RaviTezu 03-07-2013 10:54 PM

Hi chinna@calken,

Try the following commands..

1.#lsmod | grep -i usb
===========> If the usb module is loaded, gives the following output
usb_storage 42653 0

2.#modinfo usb_storage
===========> To know the module information.
Will give you the path of the module: something like ...
filename: /lib/modules/3.7.8-202.fc18.i686/kernel/drivers/usb/storage/usb-storage.ko

3.change directory to /lib/modules/3.7.8-202.fc18.i686/kernel/drivers/usb/storage/ using cd command.

4.#modprobe -r usb_storage
remove the usb module.

5.#lsmod | grep -i usb
=======> Should give nothing, as we have unloaded the usb module.

6.rename the usb-storage.ko to something like org_usb-storage.ko
=========> Rename it to something relevant, as you may need it in future.

7.modprobe usb_storage
==========> This tries to insert the usb module. Should end up in an error saying:
modprobe: ERROR: could not insert 'usb_storage': Unknown symbol in module, or unknown parameter (see dmesg)


All times are GMT -5. The time now is 02:48 AM.