Suppose I have an image home.img
of a home partition of another linux machine (B). On that machine there is a users userB
and there is a special group, groupB
. Consider for example a file fileB
in the home
partition of machine B. Suppose it is owned by userB
and groupA
.
Now if I mount (via mount home.img /mnt/homeB -o ro
) the img
file on another linux machine A (logged in as userA
), fileB
is now owned by userA
.
Is it possible to modify the mount options such that the owner, groups and permissions are shown on machine A, as it would be shown directly on machine B (for example that fileB
is owned by userB
and not by userA
)? Do I have to create a dummy userB
and groupB
on machine A?
bindfs
meet your needs. – enzotib Aug 19 '12 at 12:58