You are not logged in.
Pages: 1
Is it possible to bind-mount a directory in another location so that all contained files and folders appear to have a different UID and GID?
Offline
Try it and see?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
I tried it and found no solution so far ... (that's why I asked)
Last edited by Auch999 (2016-04-19 22:35:20)
Offline
bind mount is not a filesystem, it just another mount point that references some part of the same filesystem.
In any case, mount a filesystem with UID/GID is only possible on filesystems that does not support UID/GID perms. (for example FAT). If your filesystem is FAT you can mount more than one time, with differents UID/GID.
If the filesystem support UID/GID like EXT4, what you can do is... an overlay, then manually change each file and directory.
But all depends on what you want to do...
Offline
Why are you trying to do this? Maybe there is another solution to your problem...
Offline
Just browsing the web, I see this[#1] and remember this thread.
[#1] http://bindfs.org
Offline
Pages: 1