Running Vagrant Up error - 'Never run this as root (or with sudo).'

63 Views Asked by At

Windows - Vagrant and VM Virtual Box

If I use Vagrant Up command, I get an error. "Never run this as root (or with sudo)."

Vagrant file opens with this...

# prevent accidental sudo / root
if Process::uid == 0
  puts "Never run this as root (or with sudo)."
  exit 1
end

How do I run Vagrant Up and not get this error?

1

There are 1 best solutions below

3
BaconBurner On

If you sudo su then type exit to get out of sudo.

Or if you always use root - create another user on your unix host.