# Can describe file be run under a user other than kitchen?

**URL:** <https://discourse.chef.io/t/can-describe-file-be-run-under-a-user-other-than-kitchen/9557>\
**Category:** Chef InSpec\
**Created:** [September 30, 2016, 9:53pm UTC](https://discourse.chef.io/t/can-describe-file-be-run-under-a-user-other-than-kitchen/9557 "2016-09-30T21:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [September 30, 2016, 9:53pm UTC](https://discourse.chef.io/t/can-describe-file-be-run-under-a-user-other-than-kitchen/9557/1 "2016-09-30T21:53:08Z")

</div>

Is there a way to run the following as root or under another user instead of the kitchen user?

describe file ()  
…

---

<div class="post-metadata">

**Author:** ![chris-rock](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@chris-rock](https://discourse.chef.io/u/chris-rock)\
**Post date:** [October 17, 2016, 11:48am UTC](https://discourse.chef.io/t/can-describe-file-be-run-under-a-user-other-than-kitchen/9557/2 "2016-10-17T11:48:06Z")

</div>

`kitchen-inspec` is always using the same user as test-kitchen to establish the connection. In case you need sudo, you can activate this in your `kitchen.yml`

```auto
verifier:
  name: inspec
  sudo: true

```

Further documentation is available at [https://github.com/chef/kitchen-inspec#usage](https://github.com/chef/kitchen-inspec#usage)

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/victor/32/1259_2.png) [@Victor](https://discourse.chef.io/u/Victor)\
**Post date:** [October 17, 2016, 9:34pm UTC](https://discourse.chef.io/t/can-describe-file-be-run-under-a-user-other-than-kitchen/9557/3 "2016-10-17T21:34:23Z")

</div>

Thanks.
