terrywang / vagrantboxes

Handcrafted Arch Linux Vagrant base box with :heart:
250 stars 29 forks source link

Sudo not working #15

Closed marcboeker closed 9 years ago

marcboeker commented 9 years ago

Hi,

thanks for your hard work by providing this great box. I could not get password-less sudo working. It's always asking for a password. And "vagrant" as PW is not accepted. Is /etc/sudoers probably lacking:

vagrant ALL=(ALL) NOPASSWD: ALL

Thanks Marc

terrywang commented 9 years ago

@marcboeker Thank you for reporting the problem. I assume it is for the Arch Linux x86_64 base box.

It seems that I had forgotten to uncomment the following line when merging the /etc/sudoers file with upstream. vagrant is a member of wheel group.

 # %wheel ALL=(ALL) NOPASSWD: ALL

I've fixed the problem by separate /etc/sudoers.d/vagrant for vagrant user to avoid the configuration to be overwritten again in future ;-D

marcboeker commented 9 years ago

Yep, it's for the arch box.

Thanks for fixing it!