[opensuse] Disable Automount for DVD drive
We have a few users connected to our server via XDMCP. Whenever we insert a CD or DVD into the DVD drive an automount requeset pops up for every single user logged in at that moment, be that via XDMCP or directly at the console (see attached screenshot). How do I disable this? Running 11.2 with Gnome desktop. Since we don't use automount it'd be ok to disable it alltogether. Thanks, Martin -- Rieke Computersysteme GmbH Hellerholz 5 D-82061 Neuried Email: martin@rhm.de HRB Muenchen 73617
Martin Jungowski wrote:
We have a few users connected to our server via XDMCP. Whenever we insert a CD or DVD into the DVD drive an automount requeset pops up for every single user logged in at that moment, be that via XDMCP or directly at the console (see attached screenshot).
How do I disable this? Running 11.2 with Gnome desktop. Since we don't use automount it'd be ok to disable it alltogether.
Edit /etc/fstab - add 'noauto' to the appropriate line, IIRC Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am 12.02.2010 13:03, schrieb Dave Howorth:
Edit /etc/fstab - add 'noauto' to the appropriate line, IIRC
Obviously the DVD drive is not in the fstab but mounted automatically by automount / udev / HAL (not sure how they all work together). Should've mentioned that ;) Martin -- Rieke Computersysteme GmbH Hellerholz 5 D-82061 Neuried Email: martin@rhm.de HRB Muenchen 73617 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Martin Jungowski wrote:
Am 12.02.2010 13:03, schrieb Dave Howorth:
Edit /etc/fstab - add 'noauto' to the appropriate line, IIRC
Obviously the DVD drive is not in the fstab but mounted automatically by automount / udev / HAL (not sure how they all work together). Should've mentioned that ;)
If you are running GNOME -> gconf-editor apps->nautilus->preferences Uncheck "media-automount" HTH, Robert
Martin
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX rschweikert@novell.com 781-464-8147 Novell Making IT Work As One -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am 12.02.2010 14:10, schrieb Robert Schweikert:
If you are running GNOME
-> gconf-editor
apps->nautilus->preferences
Uncheck "media-automount"
That looks promising, thanks. Two questions tho: - is that a global setting? - isn't media_autorun_never more what I'm looking for? Thanks, Martin -- Rieke Computersysteme GmbH Hellerholz 5 D-82061 Neuried Email: martin@rhm.de HRB Muenchen 73617 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Martin Jungowski wrote:
Am 12.02.2010 14:10, schrieb Robert Schweikert:
If you are running GNOME
-> gconf-editor
apps->nautilus->preferences
Uncheck "media-automount"
That looks promising, thanks. Two questions tho:
- is that a global setting?
No, this is on a per user basis. If you need it to be global create the appropriate settings in /etc/gconf/gconf.xml.mandatory Checkout the following blog entry: http://lizards.opensuse.org/2010/01/20/locking-down-gnome-in-suse-11-based-d...
- isn't media_autorun_never more what I'm looking for?
Yes and no. This covers media that has autorun code on it. However, if the media is not mounted this cannot be detected. Robert
Thanks, Martin
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX rschweikert@novell.com 781-464-8147 Novell Making IT Work As One -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am 12.02.2010 14:26, schrieb Robert Schweikert:
No, this is on a per user basis. If you need it to be global create the appropriate settings in /etc/gconf/gconf.xml.mandatory
Checkout the following blog entry: http://lizards.opensuse.org/2010/01/20/locking-down-gnome-in-suse-11-based-d...
Thanks, I'm familiar with gconftool-2. I configured it to be mandatory for all users and will try first thing monday morning.
- isn't media_autorun_never more what I'm looking for?
Yes and no. This covers media that has autorun code on it. However, if the media is not mounted this cannot be detected.
My understanding is that the system requires authorization to run something. Anyway, I set media_autorun_never to true and left automount and automount_open as is. If it won't work I'll set these two to false and be done with it. Thanks a lot, Martin -- Rieke Computersysteme GmbH Hellerholz 5 D-82061 Neuried Email: martin@rhm.de HRB Muenchen 73617 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Robert Schweikert wrote:
No, this is on a per user basis. If you need it to be global create the appropriate settings in /etc/gconf/gconf.xml.mandatory
This is very helpful information that I'm sure will help Martin solve his problem but isn't there something philosophically wrong with this solution? Martin wants to control the behaviour of a DVD device, but this appears to be a control in the gnome user interface. What happens if other users are also using KDE or some other UI? Is there a way to specify the behaviour of the device directly so it affects all users? Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am 12.02.2010 14:45, schrieb Dave Howorth:
Martin wants to control the behaviour of a DVD device, but this appears to be a control in the gnome user interface. What happens if other users are also using KDE or some other UI? Is there a way to specify the behaviour of the device directly so it affects all users?
Dave, that's an interesting question. It won't affect me since we don't have any users running KDE or anything other than Gnome2. Still, it'd be nice to know if there's a sound solution to this. I rememember back with the openSUSE 9.3 and 10.3 servers running KDE3 we've had the same problem. Our solution back then was to simply disable DVD autorun / automount and that lasted until late 2009 when Novell decided to replace KDE3 with OMG-it's-totally-unusable-in-a-corporate-environment KDE4 for good, so we decided to switch to Gnome for good. Still, excellent objection. Martin -- Rieke Computersysteme GmbH Hellerholz 5 D-82061 Neuried Email: martin@rhm.de HRB Muenchen 73617 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 12 February 2010 14:55:15 Martin Jungowski wrote:
Am 12.02.2010 14:45, schrieb Dave Howorth:
Martin wants to control the behaviour of a DVD device, but this appears to be a control in the gnome user interface. What happens if other users are also using KDE or some other UI? Is there a way to specify the behaviour of the device directly so it affects all users?
Dave, that's an interesting question. It won't affect me since we don't have any users running KDE or anything other than Gnome2. Still, it'd be nice to know if there's a sound solution to this.
By default removable devices are not automounted under KDE 4. You can configure whether, when and how they are mounted using the Removable Devices module of System Settings. The resulting .kde4/share/config/kded_device_automounterrc can be copied to /etc/kde4/share/config to affect all users, same as any other KDE config file. Will -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2010-02-12 14:45, Dave Howorth wrote:
Robert Schweikert wrote:
No, this is on a per user basis. If you need it to be global create the appropriate settings in /etc/gconf/gconf.xml.mandatory
This is very helpful information that I'm sure will help Martin solve his problem but isn't there something philosophically wrong with this solution?
Martin wants to control the behaviour of a DVD device, but this appears to be a control in the gnome user interface. What happens if other users are also using KDE or some other UI? Is there a way to specify the behaviour of the device directly so it affects all users?
Actually, none of the remote users should be prompted about the dvd insertion, or any external/internal media. Only local users should get that prompt, this should be the default. Plus there should be a global configuration aplied to all desktops automatically. What I do is define the dvd in the fstab file. But this will not have effect on usb or eSATA disks, unless you know in advance the device node, id, or label, and adapt the fstab file. And there is another problem: when I insert an encrypted dvd, my user is prompted for the password, no way to disable this that I know of. - -- Cheers / Saludos, Carlos E. R. (from 11.2 x86_64 "Emerald" GM (Elessar)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAkt1ywQACgkQU92UU+smfQVl1QCfcEMiRplM1FdyUPFh/Zq2AK8K B5EAnifPmgbC5tTQaEh8FgvEmMAT+fik =pjCl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Carlos E. R.
-
Dave Howorth
-
Martin Jungowski
-
Robert Schweikert
-
Will Stephenson