{"action":"created","issue":{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/323","labels_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/323/comments","events_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/323/events","html_url":"https://github.com/fgrehm/vagrant-lxc/issues/323","id":46371354,"number":323,"title":"vagrant-lxc-wrapper doesn't allow 'rm' on Fedora","user":{"login":"detached","id":5504749,"avatar_url":"https://avatars.githubusercontent.com/u/5504749?v=3","gravatar_id":"","url":"https://api.github.com/users/detached","html_url":"https://github.com/detached","followers_url":"https://api.github.com/users/detached/followers","following_url":"https://api.github.com/users/detached/following{/other_user}","gists_url":"https://api.github.com/users/detached/gists{/gist_id}","starred_url":"https://api.github.com/users/detached/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detached/subscriptions","organizations_url":"https://api.github.com/users/detached/orgs","repos_url":"https://api.github.com/users/detached/repos","events_url":"https://api.github.com/users/detached/events{/privacy}","received_events_url":"https://api.github.com/users/detached/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/milestones/7","labels_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/milestones/7/labels","id":926520,"number":7,"title":"v1.1.0","description":"","creator":{"login":"fgrehm","id":81859,"avatar_url":"https://avatars.githubusercontent.com/u/81859?v=3","gravatar_id":"","url":"https://api.github.com/users/fgrehm","html_url":"https://github.com/fgrehm","followers_url":"https://api.github.com/users/fgrehm/followers","following_url":"https://api.github.com/users/fgrehm/following{/other_user}","gists_url":"https://api.github.com/users/fgrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fgrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgrehm/subscriptions","organizations_url":"https://api.github.com/users/fgrehm/orgs","repos_url":"https://api.github.com/users/fgrehm/repos","events_url":"https://api.github.com/users/fgrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fgrehm/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-01-08T02:44:21Z","updated_at":"2015-01-08T02:47:42Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2014-10-21T09:17:24Z","updated_at":"2015-01-09T14:32:05Z","closed_at":null,"body":"sudoers rm is /bin/rm on Fedora20\r\n\r\nvagrant-lxc-wrapper has only /usr/bin/rm whitelisted\r\n\r\nthat results in the error:\r\n```````\r\nThere was an error executing [\"sudo\", \"/usr/local/bin/vagrant-lxc-wrapper\", \"rm\", \"/usr/share/lxc/templates/lxc-vagrant-tmp-lxc_default_1413883001571_41712\"]\r\n```````"},"comment":{"url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/comments/69340854","html_url":"https://github.com/fgrehm/vagrant-lxc/issues/323#issuecomment-69340854","issue_url":"https://api.github.com/repos/fgrehm/vagrant-lxc/issues/323","id":69340854,"user":{"login":"kupferk","id":6523735,"avatar_url":"https://avatars.githubusercontent.com/u/6523735?v=3","gravatar_id":"","url":"https://api.github.com/users/kupferk","html_url":"https://github.com/kupferk","followers_url":"https://api.github.com/users/kupferk/followers","following_url":"https://api.github.com/users/kupferk/following{/other_user}","gists_url":"https://api.github.com/users/kupferk/gists{/gist_id}","starred_url":"https://api.github.com/users/kupferk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kupferk/subscriptions","organizations_url":"https://api.github.com/users/kupferk/orgs","repos_url":"https://api.github.com/users/kupferk/repos","events_url":"https://api.github.com/users/kupferk/events{/privacy}","received_events_url":"https://api.github.com/users/kupferk/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T14:32:05Z","updated_at":"2015-01-09T14:32:05Z","body":"I also have a similar problem on Fedora 21, but found a workaround. Let me describe what happens.\r\n\r\n1. As a normal user, I run \"vagrant lxc sudoers\"\r\nIn this case the sudo_wrapper file gets created and has whitelist entries which begin with \"/usr/bin/...\"\r\nThis is consistent with\r\n\r\n> env | grep PATH\r\n> PATH=/home/kaya/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/bin\r\n\r\nBut then I receive the error \"lxc package not installed\" when trying to start my box:\r\n> vagrant up --provider=lxc\r\n> The `lxc` package does not seem to be installed or is not accessible on the PATH.\r\n\r\nWhen I turn on debugging, I can see that vagrant is actually try to execute /bin/whch instead of /usr/bin/which\r\nAnd this behaviour is the root cause of my problem. When I execute a command without sudo, I get a different search PATH than with sudo:\r\n\r\n> env | grep PATH\r\n> PATH=/home/kaya/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:\r\n/usr/sbin:/bin:/sbin:/bin\r\n\r\nas opposed to\r\n\r\n> sudo env | grep PATH\r\n> PATH=/sbin:/bin:/usr/sbin:/usr/bin\r\n\r\nNote that the order of entries is also different!\r\n\r\nI could workaround this problem by also using sudo for generating the sudoer wrapper script\r\n\r\n> sudo vagrant lxc sudoers\r\n\r\nThis will generate a correct sudo wrapper script."}}