These commands are not being run during vagrant up, they are just printed to the terminal.  

After you vagrant up, ssh, you are id: vagrant, so it needs to be sudo.