LXC suid/guid mapping

kifeo

Well-Known Member
Oct 28, 2019
112
12
58
Hi !

I deployed a LXC container and installed the ezarr suite : https://github.com/Luctia/ezarr
So the config part uid/gid are set :

drwxrwxr-x 8 13013 13000 4096 Nov 19 10:14 bazarr-config
drwxrwxr-x 3 13008 13000 4096 Nov 19 10:14 jackett-config
drwxrwxr-x 4 13003 13000 4096 Nov 19 14:15 lidarr-config
drwxrwxr-x 4 13009 13000 4096 Nov 19 10:14 overseerr-config
drwxrwxr-x 3 13010 13000 4096 Nov 19 10:13 plex-config
drwxrwxr-x 6 13006 13000 4096 Nov 19 16:20 prowlarr-config
drwxrwxr-x 4 13007 13000 4096 Nov 19 10:14 qbittorrent-config
drwxrwxr-x 5 13002 13000 4096 Nov 19 14:15 radarr-config
drwxrwxr-x 5 13001 13000 4096 Nov 19 14:15 sonarr-config

And I wanted to use the data part as NFS, so I used the mountpoint method of host NFS mounted source mountpoint.
This gave the nobody:nogroup on the NFS due to the uid/gid mapping.

So I used https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
(I use only 3 uid mapping)
lxc.idmap: u 0 100000 13001
lxc.idmap: g 0 100000 13000
lxc.idmap: u 13001 13001 3
lxc.idmap: g 13000 13000 1
lxc.idmap: u 13004 113004 52531
lxc.idmap: g 13001 113001 52534

So this works ok now for the uid/gid of the NFS mountpoints, BUT the config part where the uid/gid (that should be the same as the NFS) are now unmapped and show nobody:nogroup.

I wanted to know if there is a way to set the previously mapped uid/gid to the new mapped.
OR if I have to do the mounting first and reinstall.

Thanks !
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!