Hi Rajesh,
     Try this, do the steps as follows.

1)Add this line "blacklist usb_storage" to the end
of /etc/modprobe.d/blacklist.conf

2)Add this line "modprobe -r usb_storage" before exit 0 in /etc/rc.local

Now restart your system.

To Mount USB device use the following command,

$sudo modprobe usb_storage

To Unmount the USB device, use "safely remove drive" by right click on the
device, then run the below command.

$sudo rmmod usb_storage

Hope this will be helpful for you!!

Regards,
Manivannan.M
http://www.howopensource.com

On Tue, Jun 14, 2011 at 11:03 PM, Rajesh kumar <[email protected]>wrote:

> I am using Ubuntu 10.04. I need to block removable media to be mounted from
> my system. No one should mount removable media except root user.
>
> 1. I tried Disabling automount and changed the permission of media
> directory. Even then if i go to places and click on media, it automatically
> mounts
> and get open.
>
> How to prevent is. I need only to use mount command to mount an external
> removable media.
>
>
> --
> regards
> Rajesh Kumar R.K
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to