Skip to content

Instantly share code, notes, and snippets.

@JohnnyNiu
Created October 21, 2016 00:30
Show Gist options
  • Save JohnnyNiu/5e49272a84bf93315a2c202357fd977b to your computer and use it in GitHub Desktop.
Save JohnnyNiu/5e49272a84bf93315a2c202357fd977b to your computer and use it in GitHub Desktop.
How to solve vagrant put tempororay file under coder structure
https://github.com/mitchellh/vagrant/issues/3493
Vagrant tried to put temp files to your temp dir which is `/tmp`, it failed becuase of the permission.
So "/tmp" directory is by default with "sticky" flag, I run chmod 777 and break that and having the same problem. To make your "/tmp" sticky you need to run:
chmod 1777 /tmp
or
chmod +t /tmp
```
chmod o+t /tmp
```
@JohnnyNiu
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment