You are not logged in.

#1 2016-04-19 22:28:00

Auch999
Member
Registered: 2016-02-28
Posts: 13

bind-mount with different UID, GID

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

#2 2016-04-19 22:31:36

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,859
Website

Re: bind-mount with different UID, GID

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.

Offline

#3 2016-04-19 22:34:34

Auch999
Member
Registered: 2016-02-28
Posts: 13

Re: bind-mount with different UID, GID

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

#4 2016-04-19 23:26:01

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: bind-mount with different UID, GID

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

#5 2016-04-19 23:35:45

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: bind-mount with different UID, GID

Why are you trying to do this? Maybe there is another solution to your problem...

Offline

#6 2016-05-22 00:56:29

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: bind-mount with different UID, GID

Just browsing the web, I see this[#1] and remember this thread.

[#1]  http://bindfs.org

Offline

Board footer

Powered by FluxBB