On Fri, 2 Mar 2018 15:49:48 +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 don't see a problem with this. As long as the directory above the mount point has rwxrwxrwx, and the root of the mounted filesystem is also rwxrwxrwx then anybody should be able to create anything in the root of the mounted filesystem. Both those modes can be set in the usual way by root using chmod whilst the filesystem is mounted for the first time.
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.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org