You are not logged in.

#1 Yesterday 17:20:04

xerxes_
Member
Registered: 2018-04-29
Posts: 789

How to use idmapped mounts?

I was trying to mount idmap mount, but I had wrong syntax error in command and I can't figure out why. Command output said to look in: "mount --help", but there was nothing useful. I also read manual for mount, search in internet and I thought I understand it, but it looks like I'm not.
These were commands I tried:

mount X-mount.idmap=b:0:1000:1000 /lost+found/ iso/
mount -o X-mount.idmap=b:0:1000:1000 /lost+found/ iso/
mount X-mount.idmap=b:1000:0:1 /root/ iso/
mount X-mount.idmap=b:1000:0:1 1000:0:1 /root/ iso/
mount X-mount.idmap=b:1000:0:1 1000:0:2 /root/ iso/
mount X-mount.idmap=b:1000:0:1
mount X-mount.idmap=/proc/628/ns/user
mount -o X-mount.idmap=/proc/628/ns/user
mount --map-users /proc/628/ns/user

So, how correct syntax?

And if I understand the purpose of idmapped mounts - it works like bind mount but with ability to change permissions for user(s), group(s) or both? Or am I wrong?

Offline

#2 Today 07:43:19

seth
Member
Registered: 2012-09-03
Posts: 58,826

Re: How to use idmapped mounts?

Any reason you're not using "--map-groups, --map-users inner:_outer_:_count_"?

Offline

Board footer

Powered by FluxBB