[lxc-users] Proper usage of fuidshift

Ron Kelley rkelleyrtp at gmail.com
Mon May 16 16:01:43 UTC 2016


Trying to understand the right way to use fuidshift.  I have rsync'd a container from one server to another and the root/group IDs are off.  Each time I start the container, I get permission denied errors (like root's .bashrc).  I read the manpage for fuidshift but am still confused.  Various incantations don't appear to put the right permissions on the container's files/directories.  Can someone please give some guidance?  

/etc/subgid output:
------------------------
rkelley:100000:65536
lxd:165536:65536
root:165536:65536
wpadmin:231072:65536


Container rsync'd from another server:
---------------------------------
root at hj-wp-container-mgmt-01:/var/lib/lxd/containers/CentOS7-PHP56-Baseline-Current# ls -la
total 4
drwxr-xr-x+  3 root   root     19 May 16 10:29 .
drwx--x--x   4 root   root    131 May 16 10:33 ..
dr-xr-xr-x  19 100000 100000 4096 May  5 17:48 rootfs


New container on server:
-----------------------
root at hj-wp-container-mgmt-01:/var/lib/lxd/containers/test-container# ls -al
total 8
drwxr-xr-x+  4 165536 165536   55 May 16 11:52 .
drwx--x--x   5 root   root    152 May 16 11:52 ..
dr-xr-xr-x  18 165536 165536 4096 May 16 11:52 rootfs


>From what I can see, the CentOS7-PHP56-Baseline-Current container should have root/group IDs of 165536/165536 but it has 100000/100000 instead.

My question is: how can I get the CentOS7-PHP56-Baseline-Current container to get the correct permissions using fuidshift?

Thanks.


More information about the lxc-users mailing list