On Wed, Feb 28, 2018 at 4:31 PM, Andrei Borzenkov <arvidjaar@gmail.com> wrote:
On Wed, Feb 28, 2018 at 6:23 PM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Wed, Feb 28, 2018 at 4:08 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
Any ideas on how to sort out permissions when systemd is managing autofs? I have googled, but all seems to discuss when you set up autofs yourself. I can do that. But we are trying to make this less complicated for the people who are managing the systems.
Not related at all.
Not sure what you mean. I meant that having the user add this to the /etc/fstab entry that they want automounted when accessed makes is easier for the untrained user:
x-systemd.automount,noauto
Editing a number of automount files and making parts of the mount directories is beyond their capabilities. We have bigger fish to fry with our users...
Mount the disk by your preferred method, then use chmod and chown to change the permissions normally.
The users should not be changing the permissions on files. At least not via a command they have to run. Then they could just as well mount the thing by hand and we skip the autofs thing.
Desktops like KDE sort this out for USB disks.
Show me how it works for you in KDE with ext4 on USB disk.
I'm not saying that it works great. But KDE at least mounts the disk as the user who is logged in. If they have permissions within the file system is a different matter. At the top level of an ext4 disk, the permissions are of the directory on which it is mounted. Underneath that it is in the disk's own file system. But not at the top level. You can play with that. Just make the directory in which you mount an ext4 disk rwxrwxrwx. Then, any user can add a file or directory in the top level. If they make a directory, it will belong to them, and so they can make changes within that directory. Things that do not belong to them follow the expected permissions actions. So I would be happy it I could either get the mount directory to belong to the user who initiated the mount, or to have it set to some permissions that I can control. Neither seem possible with autofs via systemd.
Why bother with file permissions at all then?
For our use (the removable backup disk), that would not be a problem. We would not want the whole system that way. But some file systems would be fine. In fact, I'm not asking for no permissions. I just need control over the permissions of the mount directory. The permissions in the file system are fine. -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org