I am using:

  config.vm.box = "ubuntu/xenial64"



On Thursday, April 5, 2018 at 10:04:16 AM UTC+2, Alvaro Miranda Aguilera 
wrote:
>
> Hello
>
> Which box are you using?
>
> On Thu, Apr 5, 2018 at 8:31 AM, Daniel Gonzalez <gonv...@gmail.com 
> <javascript:>> wrote:
>
>> I am confused. This is /etc/sudoers in my vagrant machine:
>>
>>     vagrant@ubuntu-xenial:~$ sudo cat /etc/sudoers                       
>>                                                                             
>>                                                                    
>>     #
>>     # This file MUST be edited with the 'visudo' command as root.
>>     #
>>     # Please consider adding local content in /etc/sudoers.d/ instead of
>>     # directly modifying this file.
>>     #
>>     # See the man page for details on how to write a sudoers file.
>>     #
>>     Defaults        env_reset
>>     Defaults        mail_badpass
>>     Defaults        secure_path=
>> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
>>     
>>     # Host alias specification
>>     
>>     # User alias specification
>>     
>>     # Cmnd alias specification
>>     
>>     # User privilege specification
>>     root    ALL=(ALL:ALL) ALL
>>     
>>     # Members of the admin group may gain root privileges
>>     %admin ALL=(ALL) ALL
>>     
>>     # Allow members of group sudo to execute any command
>>     %sudo   ALL=(ALL:ALL) ALL
>>     
>>     # See sudoers(5) for more information on "#include" directives:
>>     
>>     #includedir /etc/sudoers.d
>>
>> There is nothing in /etc/sudoers.d.
>>
>> How is passwordless sudo achieved for the vagrant user?
>>
>> The vagrant user is not even in the sudo group:
>>
>>     vagrant@ubuntu-xenial:~$ id -a
>>     uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant)
>>
>> And, as expected, adding other users to the sudo group asks me for a 
>> password:
>>
>>     user1@ubuntu-xenial:~$ sudo ls
>>     [sudo] password for user1: 
>>
>>
>> I would like to clarify these two questions:
>>
>>    1. How does the vagrant user get sudo rights?
>>    2. How is passwordless sudo achieved for the vagrant user?
>>    
>> -- 
>> 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 vagrant-up+...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/vagrant-up/6b39e469-ef65-4e34-882d-6fd6a73c1024%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/vagrant-up/6b39e469-ef65-4e34-882d-6fd6a73c1024%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> 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 vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/c9560321-7da5-464b-b07c-46490dd5e462%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to