On Thu, Mar 1, 2018 at 10:07 AM, Per Jessen <per@computer.org> wrote:
Roger Oberholtzer wrote:
These exist. For example (CIFS systemd automount via /etc/fstab):
-rw-r--r-- 1 root root 226 Mar 1 09:35 media-mma\x2dsql\x2d1-data1.automount
# Automatically generated by systemd-fstab-generator
[Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=remote-fs.target
[Automount] Where=/media/mma-sql-1/data1 TimeoutIdleSec=1min
[snip] I would expect that the DirectoryMode option should be in the .automount file. But I guess it should go in an override file. And that is what I am trying to figure out.
For that one, I would suggest:
/etc/systemd/system/media-mma\x2dsql\x2d1-data1.automount.d/override.conf
I was not aware of the .automount units, I use the oldfashioned autofs :-)
-- Per Jessen, Zürich (-5.5°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
I have made the override file, and I see that it is being used. "systemctl cat backup.automount" reports: # /run/systemd/generator/backup.automount # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Automount] Where=/backup TimeoutIdleSec=1min # /etc/systemd/system/backup.automount.d/override.conf [Automount] DirectoryMode=0777 Nonetheless, the directory has 0700 for permissions after the mount. It looks like DirectoryMode is not used. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org