======OS - Linux - Distributions - Red Hat - Notes - Disable User Automount======
// Tested with Red Hat Enterprise Linux 6.9. //
When inserting (USB) storag into a Red Hat Linux system all logged in users on the (default) Gnome desktop receive the following message:
{{:os:linux:distributions:redhat:notes:mwsnap816_2017-11-27.png?nolink&400|}}
To disable:
- Check the current setting:sudo /usr/bin/gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--get /apps/nautilus/preferences/media_automount
// This will show as "No value set for `/etc/gconf/gconf.xml.mandatory`" right after installation. //
- Set to disabled:sudo /usr/bin/gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool --set /apps/nautilus/preferences/media_automount false
Sources:
* [[https://www.linuxquestions.org/questions/red-hat-31/rhel-6-disable-gnome-dvd-automount-4175437727-print/|LinuxQuestions.org - RHEL 6 - Disable Gnome DVD Automount]]
* [[http://tips4linux.com/disable-automount-for-removable-devices-in-ubuntu/|Tips4Linux.com - Disable automount for removable devices in Ubuntu]]
* [[https://projects.gnome.org/gconf/|Gnome.org - GConf configuration system]]
According to [[https://www.linuxquestions.org/questions/red-hat-31/rhel-6-disable-gnome-dvd-automount-4175437727-print/|LinuxQuestions.org - RHEL 6 - Disable Gnome DVD Automount]] this works on Red Hat Enterprise Linux 5:/usr/bin/gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool --set /desktop/gnome/volume_manage/automount_media false
/usr/bin/gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool --set /desktop/gnome/volume_manager/automount_drives false