Is it possible to Disable auto mount of External Harddrives or USB's in RHEL.
For security reasons I have to disable this feature.
And when I need it I will enable it back.
If you also want to disable the automounting of media like CD/DVD drives, you can also add:
For further security, you can also add the following line to /etc/modprobe.conf:
All of this together should totally disable automounting in RHEL 5/6. This information comes from The NSA's "Guide to the Secure Configuration of RHEL 5", section 2.2.2.