Closed carletes closed 4 years ago
Hi @carletes,
Thank you for reminding me groups are different between OSs.
In your OpenBSD environment, doesn't it work without this change? If so, this change has a chance to affect to other OS environment.
To make this change care to other OSs, what do you think checking root group with using id command like id -gn root
?
Hi, @otahi ! No, the command chown
fails without the patch on OpenBSD.
Moreover, this patch is broken on Ubuntu guests (at least, possibly in others). Since the files under /etc/sudoers,d
end up being owned by root:vagrant
, it looks like sudo
does not take them into account.
I'll try to make the root group configurable and commit it to this branch.
@carletes at least in Linux the form chown root: <path>
should work.
@otahi please note that until now we only support Linux (and very limitedly Windows). OpenBSD support has not being merged to master yet.
Once again, the real solution to this problem would be to refactor most of the code from Action classes to Guest Capabilities. Then it can be as guest OS specific as needed. I also expect that FreeBSD support would be quite similar to OpenBSD.
The openbsd
branch in which this is based, is a bit experimental just to gain knowledge if it would work at all. So I can merge this PR into it, but not likely to merge the branch into master in the current form. I'll make a serious attempt to allocate time for this project next week.
Working with this (dirty) patch.
I set up a local Squid proxy on my workstation (
10.0.0.6
), and used this Vagrantfile:The command
vagrant up
worked this time:The variables are set:
In
/var/log/squid3/access.log
:vagrant provision
also works: