1.1.23 Disable Automounting (2024)

Information

autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives.

Note: This control should align with the tolerance of the use of portable drives and optical media in the organization. On a server requiring an admin to manually mount media can be part of defense-in-depth to reduce the risk of unapproved software or information being introduced or proprietary software or information being exfiltrated. If admins commonly use flash drives and Server access has sufficient physical controls, requiring manual mounting may not increase security.

Rationale:

With automounting enabled anyone with physical access could attach a USB drive or disc and have its contents available in system even if they lacked permissions to mount it themselves.

Impact:

The use of portable hard drives is very common for workstation users. If your organization allows the use of portable storage or media on workstations and physical access controls to workstations is considered adequate there is little value add in turning off automounting.

Solution

Run one of the following commands:
Run the following command to disable autofs :

# systemctl --now disable autofs

OR
Run the following command to remove autofs

# apt purge autofs

See Also

https://workbench.cisecurity.org/files/3208

1.1.23 Disable Automounting (2024)

FAQs

How do I disable automount? ›

Type in diskpart to open Microsoft DiskPart. Next, type in automount and Windows will respond by letting you know if automount is enabled or disabled. If you change your mind later, repeat the steps above and type in automount enable.

How do I turn off automount USB drive in Windows 11? ›

Disable the "Automatically mount new volumes" option in Disk Management (Windows): Open Disk Management (right-click on the Start button and select Disk Management). Right-click on the USB drive and select "Change Drive Letter and Paths". Select the drive letter and click on "Remove".

How to check if automount is enabled in Windows? ›

To determine if automatic mounting of new volumes is enabled, use the following commands: C:\> diskpart DISKPART> automount Automatic mounting of new volumes disabled.

How to disable autorun USB in Windows 11? ›

How to Enable / Disable AutoPlay on Windows 11
  1. Launch the Windows Settings app.
  2. When Settings App appears, on the sidebar, select "Bluetooth & Devices."
  3. Choose "AutoPlay."
  4. Toggle the switch under "Use AutoPlay for all media and devices" to turn auto-play on or off.

How to disable autorun for USB in Windows 10? ›

Below is a guide to disable AutoRun on Windows10.
  1. Select the Start icon in the lower-left corner, then select the Settings icon in the left pane.
  2. Select Devices.
  3. Select AutoPlay from the left pane, then select the AutoPlay toggle to turn it Off. Footer navigation. Accommodation.

How do I disable USB settings? ›

How to Use the Device Manager to Disable USB Ports
  1. Log in to an administrator account.
  2. Right-click on the Start menu.
  3. Click on Device Manager.
  4. Click on Universal Serial Bus controllers to view all of the USB ports.
  5. Right click on the USB port that you would like to disable.
  6. Select “Disable device”

How to disable automount raspbian? ›

Open the file manager (pcmanfm); go to the settings / preferences. In one of the tabs of this dialog you can disable all the automount stuff...

How do I turn off automount API credentials in Kubernetes? ›

Disable automounting API credentials to prevent a potentially compromised Pod resource to run API commands against Kubernetes clusters. For instructions on using this policy, please go to https://aka.ms/kubepolicydoc.

How to remove automount in Linux? ›

Disable Automatic Mounting a Specific Drive in /etc/fstab. The /etc/fstab file contains relevant information for mounting and unmounting devices. If we add the noauto option in the /etc/fstab file for a specific device, the system won't automatically mount the device but we'll still be able to mount it manually.

How do I disable automount in gnome? ›

To disable it per user:

Open dconf-editor and goto org > gnome > desktop > media-handling and uncheck automount and automount-open checkbox on right hand side pane.

Top Articles
The effects of colors on behavior
1964 50C MS | Coin Explorer
neither of the twins was arrested,传说中的800句记7000词
122242843 Routing Number BANK OF THE WEST CA - Wise
Was ist ein Crawler? | Finde es jetzt raus! | OMT-Lexikon
Fat Hog Prices Today
Top Scorers Transfermarkt
Flixtor The Meg
St Als Elm Clinic
Ati Capstone Orientation Video Quiz
Hertz Car Rental Partnership | Uber
Ktbs Payroll Login
How to find cash from balance sheet?
Jackson Stevens Global
Fool’s Paradise movie review (2023) | Roger Ebert
Best Forensic Pathology Careers + Salary Outlook | HealthGrad
2 Corinthians 6 Nlt
Bella Bodhi [Model] - Bio, Height, Body Stats, Family, Career and Net Worth 
Www.publicsurplus.com Motor Pool
Canvasdiscount Black Friday Deals
Sadie Sink Reveals She Struggles With Imposter Syndrome
Helpers Needed At Once Bug Fables
Labcorp.leavepro.com
Dal Tadka Recipe - Punjabi Dhaba Style
Cornedbeefapproved
Mikayla Campinos: Unveiling The Truth Behind The Leaked Content
Effingham Daily News Police Report
Jamielizzz Leaked
Ts Modesto
Best Laundry Mat Near Me
Southtown 101 Menu
UPS Drop Off Location Finder
Craigslist Greencastle
Unity Webgl Player Drift Hunters
2024 Ford Bronco Sport for sale - McDonough, GA - craigslist
Keeper Of The Lost Cities Series - Shannon Messenger
Aliciabibs
Bianca Belair: Age, Husband, Height & More To Know
South Bend Tribune Online
How Does The Common App Work? A Guide To The Common App
How to Print Tables in R with Examples Using table()
30 Years Of Adonis Eng Sub
Cleveland Save 25% - Lighthouse Immersive Studios | Buy Tickets
Candise Yang Acupuncture
UWPD investigating sharing of 'sensitive' photos, video of Wisconsin volleyball team
Kate Spade Outlet Altoona
All Buttons In Blox Fruits
Craigslist Marshfield Mo
Marion City Wide Garage Sale 2023
Secondary Math 2 Module 3 Answers
What Are Routing Numbers And How Do You Find Them? | MoneyTransfers.com
Latest Posts
Article information

Author: Prof. Nancy Dach

Last Updated:

Views: 6000

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Prof. Nancy Dach

Birthday: 1993-08-23

Address: 569 Waelchi Ports, South Blainebury, LA 11589

Phone: +9958996486049

Job: Sales Manager

Hobby: Web surfing, Scuba diving, Mountaineering, Writing, Sailing, Dance, Blacksmithing

Introduction: My name is Prof. Nancy Dach, I am a lively, joyous, courageous, lovely, tender, charming, open person who loves writing and wants to share my knowledge and understanding with you.