-
Notifications
You must be signed in to change notification settings - Fork 181
vagrant-lxc-wrapper doesn't allow 'rm' on Fedora #323
Comments
Weird, we rely on the output of running |
Oh, I just noticed your #322 (comment), I'll change the plugin to use Tagged as a bug |
I also have a similar problem on Fedora 21, but found a workaround. Let me describe what happens. As a normal user, I run "vagrant lxc sudoers". In this case the sudo_wrapper file gets created and has whitelist entries which begin with "/usr/bin/...". This is consistent with
But then I receive the error "lxc package not installed" when trying to start my box:
When I turn on debugging, I can see that vagrant is actually try to execute /bin/whch instead of /usr/bin/which
as opposed to
Note that the order of entries is also different! I could workaround this problem by also using sudo for generating the sudoer wrapper script
This will generate a correct sudo wrapper script. |
This is very weird and I'll need to reproduce this locally to help you out. How are you setting up your Fedora host? Are you using the instructions from https://github.com/fgrehm/vagrant-lxc/wiki/Usage-on-fedora-hosts? |
I setup my fedora host using Method 2 from the instructions. Other than that maybe there might be something wrong, because I started using Fedora 16 on my machine and upgraded to Fedora 21 during the last years. So maybe my machine has a slightly different configuration than a fresh install of Fedora 21. |
I'll try reproducing this on a clean VBox VM before 1.1.0 |
This seems to work now with 1.1.0. Thanks a lot! |
This issue reared its head again for me on Fedora 21 using 1.1.0 (installed from the new rpm packages). I outlined it in #350 , but I'll repeat: On Fedora the root has a different PATH than my user. As root (when I run sudo vagrant lxc sudoers) /bin is first in the PATH, whereas when I run vagrant as my user /usr/bin is first. This results in a wrapper file that uses an lxc_bin of /bin, but the vagrant user is passing in /usr/bin/ as a path. |
Hey, sorry for the silence here but this project is looking for maintainers 😅 As per #499, I've added the |
sudoers rm is /bin/rm on Fedora20
vagrant-lxc-wrapper has only /usr/bin/rm whitelisted
that results in the error:
The text was updated successfully, but these errors were encountered: