I'm mounting a file as a filesystem (via mdconfig and mount) and struggling to understand how "mount" remembers permission.
Before I mount the file, the mount point is owned by my user john:john
First time I mount the file it is owned by root/wheel: drwxr-xr-x 3 root wheel 512 Mar 23 12:55 mnt
I can changed ownership of the mount point: sudo chown -R john:john ./mnt
Everything is cool I could read/write the the the filesystem.
When I unmounted and re-mount the filesystem. Ownership remained with john:john.
I was expecting it would reset to root:wheel.
How does "mount" remember the permissons/ownerhips of previously mount filesystems??
Before I mount the file, the mount point is owned by my user john:john
First time I mount the file it is owned by root/wheel: drwxr-xr-x 3 root wheel 512 Mar 23 12:55 mnt
I can changed ownership of the mount point: sudo chown -R john:john ./mnt
Everything is cool I could read/write the the the filesystem.
When I unmounted and re-mount the filesystem. Ownership remained with john:john.
I was expecting it would reset to root:wheel.
How does "mount" remember the permissons/ownerhips of previously mount filesystems??