Hello if at some point you run vagrant with sudo, may explain this.
You can try to set all the files to be owned by your users at the project directory (where you have the Vagrantfile) and the global vagrant firectory /home/lasse/.vagrant.d Thanks Alvaro On Sat, Dec 28, 2019 at 12:35 PM Lasse Karagiannis < [email protected]> wrote: > Hi, I can only run "vagrant up" as root. I am on Ubuntu 18.04 and the > vagrant box is "ubuntu/trusty64" System responds: > > Bringing machine 'default' up with 'virtualbox' provider... > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in > `initialize': Permission denied @ rb_sysopen - > /home/lasse/.vagrant.d/data/lock.machine-action-8a592346e6d5c0439a627eece398466c.lock > (Errno::EACCES) > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in > `open' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:589:in > `block in lock' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:613:in > `lock' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:588:in > `lock' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in > `call' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/machine.rb:195:in > `action' > from > /opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/batch_action.rb:86:in > `block (2 levels) in run' > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/b9fa180d-20d2-4d5f-baf1-d6c7bc609bfc%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/b9fa180d-20d2-4d5f-baf1-d6c7bc609bfc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ewYnjkdUidmUA%3DQ7qrfMiJ847Cr_rOCCJZD-p5uDpwqxQ%40mail.gmail.com.
