Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digital ocean box has no user "vagrant" #438

Open
fideloper opened this issue Jan 30, 2015 · 3 comments
Open

digital ocean box has no user "vagrant" #438

fideloper opened this issue Jan 30, 2015 · 3 comments
Labels

Comments

@fideloper
Copy link
Owner

User "vagrant" assumes in PHP-FPM config (nginx/apache as well?) for run-as user. Digital Ocean provider does not have user "vagrant" (which is sorta weird given Vagrant's conventions?)

@fideloper fideloper added the bug label Jan 30, 2015
@lschule
Copy link
Contributor

lschule commented Mar 6, 2015

Hello, I can confirm you that it's the same for apache :-)
putting back to www-data in a custom script or manually is necessary to have it working. I think it's due to digital ocean having some clear limitations still.

I'm no expert, so maybe it's just a bug in the provider :-D

@tjimenez
Copy link

tjimenez commented Mar 7, 2015

My temporal solution was adding the user without home directory and restart the nginx / php services

sudo useradd --no-create-home vagrant
sudo service php5-fpm restart && sudo service nginx restart

@fideloper
Copy link
Owner Author

Looks like we can use "provider.setup" options - check it out on the readme: https://github.com/smdahlen/vagrant-digitalocean

config.ssh.username = vagrant
provider.setup = true

theand added a commit to theand/Vaprobash that referenced this issue Mar 12, 2015
* commit '08808a37f01122d9a00cb6be8a6610dfd8abfec7':
  potential fix for fideloper#438, telling DO to get user "vagrant" created on provision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants