Shell provisioner doesn't work with my permissions

26 views
Skip to first unread message

Adam Chou

unread,
Sep 29, 2015, 7:56:38 PM9/29/15
to Vagrant
I'm running a secured box that has /tmp, /home, and /var mounted with the noexec option. This is causing problems for the shell provisioner since it can't run the temporary scripts it creates in /tmp. I thought about trying to upload it somewhere else that doesn't have those restrictions, like /opt, but the vagrant user doesn't seem to have anywhere else they can upload the file to. Are there any suggestions on how to work past this hurdle? Thanks.

Alvaro Miranda Aguilera

unread,
Oct 6, 2015, 5:57:53 AM10/6/15
to vagra...@googlegroups.com
Hello,

You can use:

put the scripts in the directory where you vagrant is, say script.sh

then, you can use an script inline, and use "sh /vagrant/script.sh"

Hope this helps

Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/801f8425-79ca-43ae-8797-2931083b72b7%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Adam Chou

unread,
Oct 6, 2015, 12:18:03 PM10/6/15
to Vagrant
Thanks, that's what I ended up having to do and it works.
Reply all
Reply to author
Forward
0 new messages