Per Jessen wrote:
Roger Oberholtzer wrote:
On Wed, Feb 28, 2018 at 4:58 PM, Dave Howorth <dave@howorth.org.uk> wrote:
On Wed, 28 Feb 2018 16:01:08 +0100 Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
I am trying to use x-systemd.automount,noauto in /etc/fstab to set up automount of disks. For the most part it works fine. I am struggling with permissions.
[snip]
The problem is the top-level mount point. I do not seem to have any control over the permissions.
According to
https://www.freedesktop.org/software/systemd/man/systemd.automount.html
you do. It seems the option is called DirectoryMode.
This is the type of thing I was looking for. But I think it is not all as one expects.
The systemd mount options for /etc/fstab are described in the man page for systemd.mount. Unfortunately, the DirectoryMode option is not recognized in /etc/fstab.
It isn't a fstab option, it goes in a systemd unit file.
The mount unit is auto-generated, but you can (presumably) still override it with a drop-in config. If you have a mount unit called "ober-holtzer.mount" for mounting something on "/ober/holtzer", you create ober-holtzer.mount.d/override.conf : [automount] directorymode=1234 (loosely from memory, I might have missed something) -- Per Jessen, Zürich (-5.3°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org