-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, 2018-03-02 at 15:49 +0100, Roger Oberholtzer wrote:
On Fri, Mar 2, 2018 at 1:07 PM, Carlos E. R. <> wrote:
On Friday, 2018-03-02 at 07:53 +0100, Roger Oberholtzer wrote:
I really appreciate all the discussion. I can summarize.
The task:
- I want to automount a SATA disk in a hot swap removable drive bay.
- The disk can be any format: ext4, vfat, ntfs
- I would prefer to use the systemd automount facility where I place the needed information in /etc/hosts.
- The actions are to be performed by a normal user without root permissions. The disk should be mounted as the result of something like: cd /backup
- The user who mounted the disk should have write access to the top level directory. This is non-negotiable. Without this, the user needs root permissions to change the top level directory permissions.
It is simply impossible, except on vfat, ntfs, or exfat. This is non-negotiable. :-)
Never say never! And recall that I do not want this for existing files or directories. It is only for the top level directory for things that do not exist there yet.
I think I will try the suggestion in answer 21 described on https://askubuntu.com/questions/25071/how-to-run-a-script-when-a-specific-fl...
I'm just waiting to get access to a system. Probably on Monday.
Running a script to run chmod/chown on mount is the way to go. But it is not mounting with the permisions of the user that mounts, which is your question. But another is placing those users on the backup group and giving that group write access. You only do that once per backup disk. - -- Cheers, Carlos E. R. (from openSUSE 42.3 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlqZoc4ACgkQtTMYHG2NR9VavgCeJETzRoWpDC8oOGbjL77J+oLF rhIAnjjj8rJ6VMFXLrnmwdmjOwreU/4N =aZ6T -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org