I've a pct using script for Debian 10.6 that attempts mount a host directory in the container:
That executes, but I was expecting to see identical permissions on the host and the guest container, but am not:
Is there a chgrp/chown I have to do secondarily inside the container (pct exec 901 ....)?
Bash:
pct create 901 local:vztmpl/debian-10-standard_10.5-1_amd64.tar.gz --cores 2 --net0 name=eth0,bridge=vmbr0,ip=dhcp --rootfs local-lvm:8 --features nesting=1 --$
echo Doing dav mountpoint ...
mkdir /root/mydav
chown www-data. /root/mydav
chmod 770 /root/mydav
chgrp -R 100000 /root/mydav
pct set 901 -mp0 /root/mydav,mp=/home/webdav
echo Host mountpoint perms:
ls -al /root/mydav
pct start 901
## IP address lease from DCHP
sleep 7
echo Container mountpoint perms:
pct exec 901 -- ls -al /home/webdav
That executes, but I was expecting to see identical permissions on the host and the guest container, but am not:
Code:
Doing dav mountpoint ...
Host mountpoint perms:
total 8
drwxrwx--- 2 www-data 100000 4096 Oct 20 14:51 .
drwx------ 11 root root 4096 Oct 20 14:51 ..
Container mountpoint perms:
total 8
drwxrwx--- 2 nobody root 4096 Oct 20 14:51 .
drwxr-xr-x 3 root root 4096 Oct 20 14:51
Is there a chgrp/chown I have to do secondarily inside the container (pct exec 901 ....)?