New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount host directories with given user permissions #2246
Comments
Please try this mounts:
- location: "..."
9p:
securityModel: "mapped-xattr"
mountType: "9p" Lines 80 to 84 in 643ddd8
|
Thank you for your prompt answer, i tried the snipped you posted. unfortunately it does not work for sumlinks which are crucial in my project.
Some how as i used this method my apache web server got very slow. thanks in advance:) |
I think it would be possible to add a similar feature to the
|
It is better to serve the files from a local filesystem, but you need to set up some method to sync the contents. That is, to copy the files from the host to the instance. The file ownership could be changed during that process. |
I am not sure if I understand the snippet you have just posted. Would you mind make those changes to my snippet so i can understand where to put the options? |
It would require code changes to lima, so is a separate feature. |
Description
In my ubuntu vm which is created by limactl I have shared the /var/www directory of my host as writable. Now on my ubuntu vm I have installed the apache2 which runs under group www-data. so to sum it up the content of my website is located under
/var/www on my host-pc and the apache2 runs inside of vm. My website creates other websites that are also in the /var/www/[WEBSITE]. everything sofar is good. Except the files of the new generated website have root permissions for the group and the owner. This should not be the case, because of the www-data user of apache creating or cloning those files via git. Is this a bug or can I pass the owner and group in the .yaml file of my vm
I hope to hear from you soon.
Thanks in advance.
The text was updated successfully, but these errors were encountered: