I made a file called /etc/systemd/system/backup.service that contains this: [Unit] Description=RST backup disk setup Requires=backup.mount After=backup.mount [Service] Type=oneshot ExecStart=/usr/bin/chown rst:users /backup ; /usr/bin/chmod 0755 /backup [Install] WantedBy=backup.mount Then I ran systemctl enable backup.service Now when I do a mount, the mount point belongs to rst:users, and the permissions are 0775. These may change. But I see that I can now manipulate these properties! Perhaps not a 100% solution in that it would be great if it know who caused the automount. But it gets done what I need to get done. On Mon, Mar 5, 2018 at 7:54 AM, Roger Oberholtzer <roger.oberholtzer@gmail.com> wrote:
On Sun, Mar 4, 2018 at 2:27 PM, Carlos E. R. <robin.listas@telefonica.net> wrote:
The link you posted contains instructions for that, did you try?
I did not see anything that knew who caused the disk to be mounted. Just that it had been mounted. The udisk example was a user script, but it ran as that user. So it could not change permissions. Did I miss something?
I will be trying the systemd thing today when I get access to a system.
-- Roger Oberholtzer
-- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org