Roger Oberholtzer wrote:
On Wed, Feb 28, 2018 at 6:57 PM, Peter Suetterlin <pit@astro.su.se> wrote:
No, because you cannot overrule the setting of an ext4 (or btrfs or....) filesystem when mounting it.
Inside the file system we cannot override. But the permissions of the mount point directory itself - which are NOT in the mounted file system but are in the file system on which the drive is mounted - does control what can be done in the top level of the mount point. And that is what I am after. When we used /etc/fstab to mount directly, the directory on which the disk was mounted had to exist in advance, and we controlled the permissions of that directory when we created it.
This is strange, because it didn't work for me either, (also) the TLD permissions of a mounted disk had always been overwriting the permissions of the mount point directory.
The mount via /etc/fstab did not change those permissions. When systemd is setting up /etc/fstab entries to be handled by autofs, we seem to have lost control over the permission of the mount directory.
See the other reply (Andrei?), and man systemd.automount, DirectoryMode should be able to do this. Haven't tried though...
This is a show stopper. Unless we created a directory on the disk (where we control the directory permissions) and everything had to happen in that sub-directory. But this seems ridiculous.
To me it seems more logical to have the TLD protected, but I'm sure you now what you want (and why) :)
This is likely *not* autofs, but the systemd implementation of automounting. Autofs leaves the TLD as it is defined on the disk.
systemd uses autofs.
It's at least not mentioning it in the manpage, which mentions "...about a file system automount point controlled and supervised by systemd" Is really the automount daemon running? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org