B
B
BonBon Slick2018-09-03 19:06:43
Vagrant
BonBon Slick, 2018-09-03 19:06:43

The user that is running Vagrant doesn't have the proper permissions to write a Vagrantfile to the specified locatio?

[email protected]:/var/www/oppasland$ vagrant init
The user that is running Vagrant doesn't have the proper permissions
to write a Vagrantfile to the specified location. Please ensure that
you call `vagrant init` in a location where the proper permissions
are in place to create a Vagrantfile.

You can create it via sudo, only then ssh will not work, it will give errors when working via ssh, since the vagrant has no rights and should not affect the system. I tried to reinstall, reinitialize and again vagrant init + vagrant up, writes the same thing.
I used to do it without sudo.
Deleted like this
rm -rf /opt/vagrant
rm -f /usr/bin/vagrant

Maybe something else, boxes, images need to be deleted, user files?
Please tell me what is missing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-09-03
@BonBonSlick

so give write permissions to your user in this folder. Or change owner.
vagrant is not in business here at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question