Unable to disable USB Stick Autorun in Kali Linux GNOME

Hello everyone,

I’m using Kali Linux GNOME and I’m trying to disable the autorun feature for USB sticks. I’ve tried using the following command to achieve this:

sudo gsettings set org.gnome.desktop.media-handling autorun-never

However, even after running this command, the autorun feature is still enabled when I insert a USB stick. I’ve also tried powering off the system and restarting, but the issue persists.

I’m looking for a way to completely disable the autorun feature for USB sticks in Kali Linux GNOME. Can anyone please provide me with a solution or guide me in the right direction?

Thanks in advance for your help and support.

Hey guys,
I ended up solving the issue through gsettings using the following commands:

gsettings set org.gnome.desktop.media-handling autorun-x-content-ignore ‘[“x-content/blank-usb”, “x-content/usb”, “x-content/video-dvd”, “x-content/audio-cdda”, “x-content/image-dcf”, “x-content/audio-player”]’

gsettings set org.gnome.desktop.media-handling automount false

gsettings set org.gnome.desktop.media-handling automount-open false

gsettings set org.gnome.desktop.media-handling autorun-never true

2 Likes