Ubuntu Linux Disable Autorun

By | 2011/02/09

How do I disable autorun in Ubuntu Linux?

As in recent news, Linux on the Desktop is vulnerable to autorun attacks via a specially crafted USB flash drive. You can help to make your Linux Desktop safer by disabling autorun for removable media.


In Ubuntu, open up a terminal (Applications > Accessories > Terminal). In that window, type:

nautilus-file-management-properties

and press enter.

autorun1

In the window that appears next, go to the far right Media tab. There make two changes.

Check ‘Never prompt or start programs on media insertion’
Uncheck ‘Browse media when inserted’

autorun2

As always, YMMV! Set autorun options on your machine as based on your desired settings.