Adding user via 'users' removed vagrant from sudo list

I wonder what is the best way to add an additional user to a VM box.

I have added a dependency on ‘users’ to my cookbook and this

include_recipe “users”

to my default.rb in my cookbook.

I have also created a data bag to hold the user details.

When I run kitcken converge, it stuck at

-----> Chef Omnibus installation detected (install only if missing)

for a long time.

When I do ‘kitichen login’ to check, I find that user vagrant can no
longer do sudo without prompting for password.

How can i add a user without destroying existing configuration?

Cheers, Tony

Manage the rules for the kitchen user's sudo allowance via your sudo
cookbook authorization attributes. You told it to remove the kitchen
user's sudo allowance.

cheers,

--aj

On Wed, Feb 25, 2015 at 1:56 PM, Anthony Kong anthony.hw.kong@gmail.com wrote:

I wonder what is the best way to add an additional user to a VM box.

I have added a dependency on 'users' to my cookbook and this

include_recipe "users"

to my default.rb in my cookbook.

I have also created a data bag to hold the user details.

When I run kitcken converge, it stuck at

-----> Chef Omnibus installation detected (install only if missing)

for a long time.

When I do 'kitichen login' to check, I find that user vagrant can no longer
do sudo without prompting for password.

How can i add a user without destroying existing configuration?

Cheers, Tony