how to Deny Pen Drive Access in ubuntu

3 views
Skip to first unread message

jeetu

unread,
Jun 10, 2010, 5:44:35 AM6/10/10
to Linux Experts Group - LEG
hello all
I want to deny only pen drive access to ubuntu not usb mouse or
keyboard. next thing is it should denied to root also. well i had
done
some googling related to that i found few things which i need to
share
with you. first thing is i mange to do what i want it with this
command modprobe -r usb_storage. but the crazy thing is it get
flushes
on every reboot. I need to make it persistant. does anybody know how
should i do that. i had tried few things like modprobe -l usb_storage
and the path which i got i went there and removed that file. Can
anybody tell me whats the solution.
YOUR REPLIES ARE TRULY VALUABLE TO ME.

GOPU N

unread,
Jun 11, 2010, 6:42:16 AM6/11/10
to Linux Experts Group - LEG
You can do it in two ways,

adding your command in the os startup script

or moving usb_storage module to a different location.
(ie) mv /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-
storage.ko /root

Best Regards,
Gopu N
Reply all
Reply to author
Forward
0 new messages