Re: Preventing USB automount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Stuart Sears wrote:
> The issue here is that it's not udev that is doing the mounting, AFAIK.
> This is done by hal - or it would happen on the console too.
>
> do you want the device nodes created at all?
> or just not mounted?
>
> you can completely disable usb storage devices using /etc/modprobe.conf,
> if you wish, just add this line to it:
>
> install usb_storage /bin/true
>
> This will prevent usb_storage devices from working (as long as
> usb_storage is not already loaded). It's a bit of a drastic solution,
> but it works fine. However, their device nodes will also not exist, so
> manual mounting is out of the question as well.
>
> The hal solution offered earlier seems like a good start if you want the
> devices to be mountable, but not automounted.
>
> There's probably a gconf key to prevent this from happening under GNOME,
> too if you'd rather. KDE will have a similar setting.

I'll likely need the device nodes to be created in case there's an admin
need.  But the user on the system should not get access to any usb storage
device.  Hence the need to only disable the automount part of the process.

A quick test of turning off haldaemon didn't prove promising.  I noticed
immediately that automounting CD's is disabled.  That's something I want
to keep working.

-- 
*       Stephen Berg       *
*  sberg@xxxxxxxxxxxxxxx   *
* http://iceberg.3c0x1.com *
*  Sinners can repent,     *
*  But stupid is forever.  *

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux