Blacklisting usb-storage is ignored.

Bug #1035739 reported by rpkrawczyk
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
module-init-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If I need to prevent my users from using an usb-stick I tried to use the recipe found in http://askubuntu.com/questions/153964/how-do-i-prevent-standard-users-from-using-the-usb-ports. Unfortunately it did not work. After plugging in an usb-stick the module gets loaded (although hblacklisted) and the stick is recognised.
What further information do you need to examine the bug?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in module-init-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Simon Strandman (nejsimon) wrote :

I have the same problem on Ubuntu 12.04. I've tried to blacklist both "usb-storage" and "usb_storage" either by adding them to blacklist.conf or by creating a new .conf-file with the entries. But the module keeps getting loaded on boot anyway.

Revision history for this message
rpkrawczyk (rpkrawczyk) wrote : [Bug 1035739] Re: Blacklisting usb-storage is ignored.

Hi Simon,

Usually you need to run mkinitrd then modules are not loaded while booting.
But when you plug in an usb stick it is loaded nevertheless. Could you
please check?

Robert

>

--
 (o_ Dr. Robert P. Krawczyk
 //\
 V_/

Revision history for this message
yannick L (yannick-lorenzat) wrote :

Hi,

I Have the same problem and i want to heelp,
but i don't understand what do you want we check rpkrawczyk.

Just for information, I have the usb_storage module blacklisted on ubuntu 11.10 and it work just fine

Revision history for this message
rpkrawczyk (rpkrawczyk) wrote :

Hi yannick,

sorry for keeping you in the dark. What I meant is the following

1. please blacklist the usb_storage module
2. as root (or use sudo): "rmmod usb-storage"
3. Plug in an USB stick

On 11.10 the USB stick would not be detected and on 12.04 the module is loaded nevertheless and the stick recognised. Can you confirm that?

Thank you!

Revision history for this message
yannick L (yannick-lorenzat) wrote :

Yes I can.
It is always loaded on ubuntu 12.04 and never on ubuntu 11.10

Revision history for this message
rpkrawczyk (rpkrawczyk) wrote :

OK, this is very weird. Why is this module loaded? Can anybody give a hint to which process loads this module? Can I provide further information?

Revision history for this message
Leonardo Borda (lborda) wrote :

Hi

I can also confirm that blacklisting usb-storage does not prevent it from being loaded upon boot.
This also happens in 12.04.2 LTS.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.