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


#1

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

describe file ()


#2

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

verifier:
  name: inspec
  sudo: true

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


#3

Thanks.