Autofs - USB automount file permissions incorrect

On SLES12 SP3 automount is on by default. When I insert a DVD containing HP Proliant Service Pack, the dvd is auto mounted, I can change to the /run/media/root/SPP directory and execute since its permissions are 744. In fact all files on the DVD have permissions 744 and all directories are 777. The same iso (HP Service Pack) on a USB Stick (written via HP USB Drive Key Utililty) also will automount. But the file permissions for are 644 and will not execute (permission denied). All files on the USB device have permissions 644 except for launch_sum.bat which is 755 (this is the start script for use on windows systems). The mount command shows the USB stick is mounted with fmask=0022 and dmask=0077 but those values seem to be ignored. If I unmount the usb device, then manually mount it: mount /dev/sdc /mnt then the permissions are as expected and can be executed. I’ve been trying to use /etc/auto.master and /etc/auto.misc to control autofs but have had no success. I removed the mount entry for the cd in auto.misc but it seemed to have no effect and I suspect not even being used. The Admin Guide has lots of information on autofs, but nothing dealing specifically with usb devices. Has anyone tried changing usb automount behavior and succeeded?


It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

Be sure to read the forum FAQ about what to expect in the way of responses:

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot…

Good luck!

Your SUSE Forums Team

Getting closer. Found that by creating 99-udisk2.rules in /etc/udev/rules.d/ I can alter the location of the usb automount from /run/media// to somewhere else, i.e. /media/. Just have to figure out how to change the file permissions of this automount, MODE=0777 has no effect.


have you checked if the “noexec” option is set for those auto-mounted file systems?


Yes, noexec is on for the automounts. Can’t find anyway to disable it or affect the mount parameters in any way.