Vagrant Up by Non-Sudo Vagrant User fails


I created a new non-sudo user(user1) in vagrant(Ubuntu 12.04 OS), and added the insecure public key to the user1 authorised key file. In vagrant file, added the default user as "user1" :

config.ssh.default.username = "user1"

Now vagrant up is failing with following error message:

The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mkdir -p /vagrant Stdout from the command: Stderr from the command: sudo: no tty present and no askpass program specified Sorry, try again. sudo: no tty present and no askpass program specified Sorry, try again. sudo: no tty present and no askpass program specified Sorry, try again. sudo: 3 incorrect password attempts

But if am setting the sudo user for default user, then vagrant up is successful. Can anyone help me with the changes I need to do to enable vagrant up for non-sudo users.


Vagrant requires root/sudo permissions on the VM for almost all of it's operations; like configuring the networking, mounting shared folders, running provisioners, etc. So you wouldn't get very useful VM without sudo even if you managed to avoid it.

Note that you only need sudo access on the guest. Vagrant commands itself can (and should) be run as a non-root user on the host.


  • Spring Integration listen on queue without poller
  • Laravel 5 and Wordpress 4.1.1 in the same server
  • Finding out how to get this specific URL
  • Can't find pipeline editor anymore
  • Git Configuration with eclipse--not able to push code from eclipse to remote git server
  • automate ssh-keygen for github in powershell
  • Ansible sudo hangs after 5 tasks
  • Net-ssh session timeout
  • `docker cp` doesn't copy file into container
  • CUDA Debugging - VS on windows workstation, GPUs on Linux server?
  • How to check disabled jobs with Jenkins server?
  • Python Paramiko send CTRL+C to an ssh shell
  • MAVEN : Run Multiple Maven Project using Maven Test
  • How can I prevent the need to copy strings passed to a avr-gcc C++ constructor?
  • How to log in to an HTTPS website with Jsoup?
  • Check for zero lines output from command over SSH
  • Problems installing Yesod for Haskell
  • Unable to install Git-core+svn by MacPorts
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • NHibernate Validation Localization with S#arp Architecture
  • ilmerge with a PFX file
  • How can I send an e-mail from a vbs script
  • Jenkins: How To Build multiple projects from a TFS repository?
  • How do I fake an specific browser client when using Java's Net library?
  • Accessing IRQ description array within a module and displaying action names
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • Does CUDA 5 support STL or THRUST inside the device code?
  • When should I choose bucket sort over other sorting algorithms?
  • How do you troubleshoot character encoding problems?
  • Apache 2.4 - remove | delete | uninstall
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • Getting error when using KSoap library to consume .NET web services
  • Hits per day in Google Big Query
  • Understanding cpu registers
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Getting Messege Twice Using IMvxMessenger
  • Linking SubReports Without LinkChild/LinkMaster
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass