Re: Setting up bindfs mount in LXC container

2023-01-19 Thread Max Nikulin
On 18/01/2023 13:02, Richard Hector wrote: I have a Wordpress site. The directory /srv/sitename/doc_root, and most of the directories under it, are owned by user 'sitename'. PHP runs as 'sitename-run', which has access (via group 'sitename') to read all of that, but not write it. Some

Re: Setting up bindfs mount in LXC container

2023-01-17 Thread Richard Hector
On 18/01/23 16:38, Max Nikulin wrote: On 18/01/2023 03:52, Richard Hector wrote: On 17/01/23 23:52, Max Nikulin wrote: lxc.idmap = u 0 10 1000 lxc.idmap = u 1000 1000 1 lxc.mount.entry = /home/richard/sitename/doc_root srv/sitename/doc_root none bind,optional,create=dir My goal is not

Re: Setting up bindfs mount in LXC container

2023-01-17 Thread Max Nikulin
On 18/01/2023 03:52, Richard Hector wrote: On 17/01/23 23:52, Max Nikulin wrote: lxc.idmap = u 0 10 1000 lxc.idmap = u 1000 1000 1 lxc.mount.entry = /home/richard/sitename/doc_root srv/sitename/doc_root none bind,optional,create=dir My goal is not to map container users to host users,

Re: Setting up bindfs mount in LXC container

2023-01-17 Thread Richard Hector
On 17/01/23 23:52, Max Nikulin wrote: On 17/01/2023 04:06, Richard Hector wrote: I'm using bindfs in my web LXC containers to allow particular users to write to their site docroot as the correct user. I am not familiar with bindfs, so I may miss something important for your use case.

Re: Setting up bindfs mount in LXC container

2023-01-17 Thread Max Nikulin
On 17/01/2023 17:52, Max Nikulin wrote: lxc.mount.entry = /home/richard/sitename/doc_root /srv/sitename/doc_root none bind,optional,create=dir Sorry, path inside the container should be without the leading slash. lxc.mount.entry = /home/richard/sitename/doc_root srv/sitename/doc_root none

Re: Setting up bindfs mount in LXC container

2023-01-17 Thread Max Nikulin
On 17/01/2023 04:06, Richard Hector wrote: I'm using bindfs in my web LXC containers to allow particular users to write to their site docroot as the correct user. I am not familiar with bindfs, so I may miss something important for your use case. First of all I am unsure why you prefer

Setting up bindfs mount in LXC container

2023-01-16 Thread Richard Hector
Hi all, I'm using bindfs in my web LXC containers to allow particular users to write to their site docroot as the correct user. Getting this to work has been really hacky, and while it does seem to work, I get log messages saying it didn't ... In /var/lib/lxc//config: