I want to use bindfs to mount my website docroot, with ownership adjustments, into a user’s home directory. This works fine on a normal system, with an fstab line like this:
/srv/wptest-home/doc_root /home/richard/wptest-home/doc_root fuse.bindfs --force-user=richard,--force-group=richard,--create-for-user=wptest-home,--create-for-group=wptest-home 0 0
After various experiments with putting a
lxc.mount.entry in the container config, then playing with
/etc/fstab in the container, I got it going, after creating /dev/fuse with
sudo mknod /dev/fuse c 10 299.
Then I deleted that device node, and tried various methods to create it at boot time. I managed to do that with a hook (
… but from then on, I haven’t been able to do the mount. I can create the device node manually, and it looks exactly the same. But I get:
fuse: failed to open /dev/fuse: Operation not permitted.
I can’t figure out what has changed since it worked a few hours ago.
crw-r--r-- 1 root root 10, 299 Oct 12 21:05 /dev/fuse
/srv/testsite/doc_root /home/richard/testsite/doc_root fuse.bindfs --force-user=richard,--force-group=richard,--create-for-user=testsite,--create-for-group=testsite 0 0