# Adding user via 'users' removed vagrant from sudo list

**URL:** <https://discourse.chef.io/t/adding-user-via-users-removed-vagrant-from-sudo-list/6347>\
**Category:** Chef Infra (archive)\
**Created:** [February 25, 2015, 12:56am UTC](https://discourse.chef.io/t/adding-user-via-users-removed-vagrant-from-sudo-list/6347 "2015-02-25T00:56:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Kong](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/anthony_kong/32/73_2.png) [@Anthony\_Kong](https://discourse.chef.io/u/Anthony_Kong)\
**Post date:** [February 25, 2015, 12:56am UTC](https://discourse.chef.io/t/adding-user-via-users-removed-vagrant-from-sudo-list/6347/1 "2015-02-25T00:56:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AJ\_Christensen2](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/aj_christensen2/32/42_2.png) [@AJ\_Christensen2](https://discourse.chef.io/u/AJ_Christensen2)\
**Post date:** [February 25, 2015, 1:13am UTC](https://discourse.chef.io/t/adding-user-via-users-removed-vagrant-from-sudo-list/6347/2 "2015-02-25T01:13:14Z")

</div>

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](mailto: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
