On Thu, Mar 1, 2018 at 3:43 PM, Peter Suetterlin <pit@astro.su.se> wrote:
Roger Oberholtzer wrote:
I have made the override file, and I see that it is being used.
:D
# /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.
Hmm, the manpage indeed only says that the mode is used if mountpoint directories are created. And that the default is 755. That one you do not see either. And IMHO this is because this is what the permission on the filesystem of the disk is.
I just tried this when the mount point does not exist. The mount directory is not created. It has to already exist. When I do 'cd /backup', I get this error: 'cd: /backup: No such file or directory'. Normally, 'cd /backup' causes it to be mounted. I suspect here is a way systemd sets things up differently that when one configures automount directly.
I'd really like to see you mounting this disk anywhere, and getting a 777 permission and/or different UID as owner.
Can't you just set the proper permission of those disk when creating the FS? I don't assume your users are doing this?
I'll bite. If you create a new partition (ext4), how do you set the permissions in the disk itself for the top directory? That is, so the permissions of the mount point come from the disk and not the directory on which it is mounted? I tried this while /backup was mounted: cd /backup chmod 0755 . After a remount, the permissions are what the directory on which it was mounted had. Not 0755. Something is missing somewhere...
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org